home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Each map object action now take different numbers of turns to complete. Re-wrote...
[plomrogue]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index 88d90d2844dc1e51b48205101933a1791b974bc4..86f8507869cd3e28899b67dde5ed97ed59a9b348 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-29,6
+29,7
@@
#include "control.h" /* for control_by_id(), player_control(),
* get_available_keycode_to_action()
*/
#include "control.h" /* for control_by_id(), player_control(),
* get_available_keycode_to_action()
*/
+#include "map_object_actions.h" /* for init_map_object_actions() */
@@
-37,8
+38,11
@@
int main(int argc, char *argv[])
char * f_name = "main()";
world.turn = 0; /* Turns to 1 when map and objects are initalized. */
char * f_name = "main()";
world.turn = 0; /* Turns to 1 when map and objects are initalized. */
+ /* Initialize commands and map object actions. */
init_command_db();
set_cleanup_flag(CLEANUP_COMMAND_DB);
init_command_db();
set_cleanup_flag(CLEANUP_COMMAND_DB);
+ init_map_object_actions();
+ set_cleanup_flag(CLEANUP_MAPOBJACTS);
/* Check for corrupted savefile / recordfile savings. */
char * recordfile = "record";
/* Check for corrupted savefile / recordfile savings. */
char * recordfile = "record";