home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support different kinds of monsters and items defined in map object definition struct...
[plomrogue]
/
src
/
misc.c
diff --git
a/src/misc.c
b/src/misc.c
index d4d0ae691b699369e2b89290c838d606440c7108..83ed263a4ff3891925d76f10c3061dc7f7fcb22c 100644
(file)
--- a/
src/misc.c
+++ b/
src/misc.c
@@
-4,7
+4,7
@@
#include "windows.h"
#include "keybindings.h"
#include "readwrite.h"
#include "windows.h"
#include "keybindings.h"
#include "readwrite.h"
-#include "
objects_on_map
.h"
+#include "
map_objects
.h"
#include "map.h"
#include "main.h"
#include "map.h"
#include "main.h"
@@
-59,7
+59,7
@@
extern void turn_over (struct World * world, char action) {
world->turn++;
rrand(1, world->seed * world->turn);
struct Monster * monster;
world->turn++;
rrand(1, world->seed * world->turn);
struct Monster * monster;
- for (monster = world->monster; monster != 0; monster = monster->
cmo
.next)
+ for (monster = world->monster; monster != 0; monster = monster->
map_obj
.next)
move_monster(world, monster); }
extern void save_game(struct World * world) {
move_monster(world, monster); }
extern void save_game(struct World * world) {