Import day length patch

Minor whitespace fixes.

http://www.tt-forums.net/viewtopic.php?p=1148227#p1148227
This commit is contained in:
patch-import
2015-08-09 11:23:07 +01:00
committed by Jonathan G Rennison
parent be00f631da
commit d86a56cbef
12 changed files with 38 additions and 9 deletions

View File

@@ -1377,11 +1377,17 @@ void StateGameLoop()
Backup<CompanyByte> cur_company(_current_company, OWNER_NONE, FILE_LINE);
BasePersistentStorageArray::SwitchMode(PSM_ENTER_GAMELOOP);
AnimateAnimatedTiles();
IncreaseDate();
RunTileLoop();
CallVehicleTicks();
CallLandscapeTick();
_tick_skip_counter++;
if (_tick_skip_counter < _settings_game.economy.day_length_factor) {
CallVehicleTicks();
} else {
_tick_skip_counter = 0;
AnimateAnimatedTiles();
IncreaseDate();
RunTileLoop();
CallVehicleTicks();
CallLandscapeTick();
}
BasePersistentStorageArray::SwitchMode(PSM_LEAVE_GAMELOOP);
#ifndef DEBUG_DUMP_COMMANDS