Revert: 4c59dfb6, move DoPaletteAnimations back into GameLoop

Race fix to follow
This commit is contained in:
Jonathan G Rennison
2021-04-05 19:55:53 +01:00
parent 2e6dbfee05
commit 2a13c8623c
5 changed files with 3 additions and 12 deletions

View File

@@ -51,14 +51,12 @@ void VideoDriver_Null::MainLoop()
if (this->until_exit) {
while (!_exit_game) {
::GameLoop();
::GameLoopPaletteAnimations();
::InputLoop();
::UpdateWindows();
}
} else {
for (int i = 0; i < this->ticks; i++) {
::GameLoop();
::GameLoopPaletteAnimations();
::InputLoop();
::UpdateWindows();
}

View File

@@ -34,10 +34,6 @@ void VideoDriver::GameLoop()
std::lock_guard<std::mutex> lock(this->game_state_mutex);
::GameLoop();
// TODO: lock
::GameLoopPaletteAnimations();
// TODO: unlock
}
}