Avoid storing history information during a rewind.

This commit is contained in:
hiker 2018-01-04 09:01:24 +11:00
parent cdf3dd8062
commit 547e59e866

View File

@ -849,7 +849,9 @@ void World::updateWorld(float dt)
getPhase() == IN_GAME_MENU_PHASE ) getPhase() == IN_GAME_MENU_PHASE )
return; return;
if (!history->replayHistory()) if (!history->replayHistory() &&
! (NetworkConfig::get()->isClient() &&
RewindManager::get()->isRewinding() ) )
{ {
history->updateSaving(dt); // updating the saved state history->updateSaving(dt); // updating the saved state
} }