Console commands and other improvements for automated testing

This commit is contained in:
dP
2021-07-28 21:35:57 +03:00
parent 68ffdb88a7
commit 16ec18a70d
8 changed files with 177 additions and 29 deletions

View File

@@ -34,6 +34,8 @@
#include "../gfx_func.h"
#include "../error.h"
#include "citymania/cm_console_cmds.hpp"
#include "../safeguards.h"
#ifdef DEBUG_DUMP_COMMANDS
@@ -1000,6 +1002,8 @@ void NetworkGameLoop()
NetworkExecuteLocalCommandQueue();
if (_pause_countdown > 0 && --_pause_countdown == 0) DoCommandP(0, PM_PAUSED_NORMAL, 1, CMD_PAUSE);
citymania::ExecuteFakeCommands(_date, _date_fract);
/* Then we make the frame */
StateGameLoop();