equal
deleted
inserted
replaced
16 #include "newgrf_storage.h" |
16 #include "newgrf_storage.h" |
17 #include "strings_func.h" |
17 #include "strings_func.h" |
18 #include "gfx_func.h" |
18 #include "gfx_func.h" |
19 #include "functions.h" |
19 #include "functions.h" |
20 #include "town.h" |
20 #include "town.h" |
|
21 #include "date_func.h" |
|
22 #include "debug.h" |
21 |
23 |
22 const char *_cmd_text = NULL; |
24 const char *_cmd_text = NULL; |
23 |
25 |
24 /** |
26 /** |
25 * Helper macro to define the header of all command handler macros. |
27 * Helper macro to define the header of all command handler macros. |
611 _cmd_text = NULL; |
613 _cmd_text = NULL; |
612 ClearStorageChanges(false); |
614 ClearStorageChanges(false); |
613 return true; |
615 return true; |
614 } |
616 } |
615 #endif /* ENABLE_NETWORK */ |
617 #endif /* ENABLE_NETWORK */ |
616 #ifdef DEBUG_DUMP_COMMANDS |
618 DebugDumpCommands("ddc:cmd:%d;%d;%d;%d;%d;%d;%d;%s\n", _date, _date_fract, (int)_current_player, tile, p1, p2, cmd, _cmd_text); |
617 extern Date _date; |
|
618 extern DateFract _date_fract; |
|
619 debug_dump_commands("ddc:cmd:%d;%d;%d;%d;%d;%d;%d;%s\n", _date, _date_fract, (int)_current_player, tile, p1, p2, cmd, _cmd_text); |
|
620 #endif /* DUMP_COMMANDS */ |
|
621 |
619 |
622 /* update last build coordinate of player. */ |
620 /* update last build coordinate of player. */ |
623 if (tile != 0 && IsValidPlayer(_current_player)) { |
621 if (tile != 0 && IsValidPlayer(_current_player)) { |
624 GetPlayer(_current_player)->last_build_coordinate = tile; |
622 GetPlayer(_current_player)->last_build_coordinate = tile; |
625 } |
623 } |