home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bebc99
)
Reference map only through world struct.
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 14 Aug 2013 01:11:36 +0000
(
03:11
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 14 Aug 2013 01:11:36 +0000
(
03:11
+0200)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index f7007b7d477232601ef065c8f27af0373ed93a75..7096f6c65a536f7c9d74323602e0526997099ced 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-109,7
+109,7
@@
int main(int argc, char *argv[])
set_cleanup_flag(CLEANUP_MAP);
if (1 == world.turn)
{
- player.pos = find_passable_pos(
&
map);
+ player.pos = find_passable_pos(
world.
map);
void * foo;
foo = build_map_objects(&world, &world.monster, 1, 1 + rrand() % 27);
foo = build_map_objects(&world, foo, 2, 1 + rrand() % 9);