home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replaced random movement by enemies with a pretty dumb AI of "move in direction of...
[plomrogue]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index 478f764d4586d43908632a0512a1b03bd58b495d..9bb983dcb5ff212d5e1aae9478cc2265b1c30b85 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-41,7
+41,7
@@
int main(int argc, char *argv[])
init_command_db();
set_cleanup_flag(CLEANUP_COMMAND_DB);
init_map_object_actions();
init_command_db();
set_cleanup_flag(CLEANUP_COMMAND_DB);
init_map_object_actions();
- set_cleanup_flag(CLEANUP_MAP
OBJ
ACTS);
+ set_cleanup_flag(CLEANUP_MAP
_OBJECT_
ACTS);
/* Check for corrupted savefile / recordfile savings. */
char * recordfile = "record";
/* Check for corrupted savefile / recordfile savings. */
char * recordfile = "record";
@@
-152,16
+152,14
@@
int main(int argc, char *argv[])
world.seed = restore_seed;
/* Initialize window system and windows. */
world.seed = restore_seed;
/* Initialize window system and windows. */
-
WINDOW * screen = initscr
();
+
init_win_meta
();
set_cleanup_flag(CLEANUP_NCURSES);
noecho();
curs_set(0);
set_cleanup_flag(CLEANUP_NCURSES);
noecho();
curs_set(0);
- keypad(screen, TRUE);
+ keypad(
world.wmeta->
screen, TRUE);
raw();
raw();
- init_win_meta(screen);
- set_cleanup_flag(CLEANUP_WIN_META);
load_interface_conf();
load_interface_conf();
- set_cleanup_flag(CLEANUP_INTERFACE
_CONF
);
+ set_cleanup_flag(CLEANUP_INTERFACE);
/* Focus map on player. */
struct MapObj * player = get_player();
/* Focus map on player. */
struct MapObj * player = get_player();