Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RogueReborn
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mikhail Andrenkov
RogueReborn
Commits
5acf992c
Commit
5acf992c
authored
8 years ago
by
Ian Prins
Browse files
Options
Downloads
Patches
Plain Diff
kill the uninitialized thing, again
parent
02efae2f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/include/level.h
+2
-2
2 additions, 2 deletions
src/include/level.h
src/level.cpp
+1
-1
1 addition, 1 deletion
src/level.cpp
with
3 additions
and
3 deletions
src/include/level.h
+
2
−
2
View file @
5acf992c
...
...
@@ -62,9 +62,9 @@ class Level {
Mob
*
mob
;
int
delay
;
};
const
Coord
nearby
[
8
]
=
{
Coord
(
-
1
,
-
1
),
Coord
(
0
,
-
1
),
Coord
(
1
,
-
1
),
Coord
(
1
,
0
),
Coord
(
1
,
1
),
Coord
(
0
,
1
),
Coord
(
-
1
,
1
),
Coord
(
-
1
,
0
)
};
const
int
MAX_ROOMS
=
9
;
#define MAX_ROOMS_DEF (9)
static
const
int
MAX_ROOMS
=
9
;
const
double
GOLD_CHANCE
=
.333
;
const
double
ROOM_EXIST_CHANCE
=
0.9
;
static
const
int
ROOM_PADDING
=
2
;
...
...
This diff is collapsed.
Click to expand it.
src/level.cpp
+
1
−
1
View file @
5acf992c
...
...
@@ -157,7 +157,7 @@ void Level::generate(PlayerChar player) {
}
//Used to say: If A -> B, then B -> A
bool
symmetric
[
MAX_ROOMS
][
MAX_ROOMS
]
=
{
{
0
}
};
//Take care of non-existent rooms
bool
symmetric
[
MAX_ROOMS
_DEF
][
MAX_ROOMS
_DEF
]
=
{};
//Take care of non-existent rooms
for
(
auto
i
=
0
;
i
<
MAX_ROOMS
;
i
++
){
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment