Don't re-update scripting engine during rewind
This commit is contained in:
parent
0fa444fbbf
commit
17d1bddf0d
@ -1044,8 +1044,13 @@ void World::update(int ticks)
|
|||||||
PROFILER_POP_CPU_MARKER();
|
PROFILER_POP_CPU_MARKER();
|
||||||
|
|
||||||
if(race_manager->isRecordingRace()) ReplayRecorder::get()->update(ticks);
|
if(race_manager->isRecordingRace()) ReplayRecorder::get()->update(ticks);
|
||||||
Scripting::ScriptEngine *script_engine = Scripting::ScriptEngine::getInstance();
|
if (!RewindManager::get()->isRewinding())
|
||||||
if (script_engine) script_engine->update(ticks);
|
{
|
||||||
|
Scripting::ScriptEngine *script_engine =
|
||||||
|
Scripting::ScriptEngine::getInstance();
|
||||||
|
if (script_engine)
|
||||||
|
script_engine->update(ticks);
|
||||||
|
}
|
||||||
|
|
||||||
Physics::getInstance()->update(ticks);
|
Physics::getInstance()->update(ticks);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user