Fixed ScriptThread timing

This commit is contained in:
smallmodel committed 2023-10-27 21:02:18 +02:00
1 parent 30d26c3e44
commit f96b606a1a
5 files changed
+12 -12

No files matched your search

+2 -2
View File
@@ -755,9 +755,9 @@ void ScriptMaster::SetTime(int time)
timerList.SetDirty();
}
void ScriptMaster::AddTiming(ScriptThread *thread, float time)
void ScriptMaster::AddTiming(ScriptThread *thread, int time)
{
timerList.AddElement(thread, level.inttime + (int)(time * 1000.0f + 0.5f));
timerList.AddElement(thread, time);
}
void ScriptMaster::RemoveTiming(ScriptThread *thread)