1
0

additionally allow calc code to trigger every 10ms instead of 100ms

This commit is contained in:
Emagi 2025-01-30 10:04:18 -05:00
parent 18104e776b
commit f5bda95372

View File

@ -3705,7 +3705,7 @@ bool Spawn::CalculateChange(){
void Spawn::CalculateRunningLocation(bool stop){ void Spawn::CalculateRunningLocation(bool stop){
bool pauseTimerEnabled = IsPauseMovementTimerActive(); bool pauseTimerEnabled = IsPauseMovementTimerActive();
if (!pauseTimerEnabled && !stop && (last_location_update + 100) > Timer::GetCurrentTime2()) if (!pauseTimerEnabled && !stop && (last_location_update + 10) > Timer::GetCurrentTime2())
return; return;
else if (!pauseTimerEnabled && !stop) else if (!pauseTimerEnabled && !stop)
last_location_update = Timer::GetCurrentTime2(); last_location_update = Timer::GetCurrentTime2();