equal
deleted
inserted
replaced
819 void StateGameLoop(void) |
819 void StateGameLoop(void) |
820 { |
820 { |
821 // dont execute the state loop during pause |
821 // dont execute the state loop during pause |
822 if (_pause) return; |
822 if (_pause) return; |
823 |
823 |
824 // _frame_counter is increased somewhere else when in network-mode |
|
825 // Sidenote: _frame_counter is ONLY used for _savedump in non-MP-games |
|
826 // Should that not be deleted? If so, the next 2 lines can also be deleted |
|
827 if (!_networking) _frame_counter++; |
|
828 |
|
829 if (_savedump_path[0] && (uint)_frame_counter >= _savedump_first && (uint)(_frame_counter -_savedump_first) % _savedump_freq == 0 ) { |
|
830 char buf[100]; |
|
831 sprintf(buf, "%s%.5d.sav", _savedump_path, _frame_counter); |
|
832 SaveOrLoad(buf, SL_SAVE); |
|
833 if ((uint)_frame_counter >= _savedump_last) exit(1); |
|
834 } |
|
835 |
|
836 if (_game_mode == GM_EDITOR) { |
824 if (_game_mode == GM_EDITOR) { |
837 RunTileLoop(); |
825 RunTileLoop(); |
838 CallVehicleTicks(); |
826 CallVehicleTicks(); |
839 CallLandscapeTick(); |
827 CallLandscapeTick(); |
840 CallWindowTickEvent(); |
828 CallWindowTickEvent(); |