diff --git a/src/game/CAvaraGame.cpp b/src/game/CAvaraGame.cpp index 04a0f3f7..f1a0436f 100755 --- a/src/game/CAvaraGame.cpp +++ b/src/game/CAvaraGame.cpp @@ -1135,7 +1135,7 @@ void CAvaraGame::IncrementFrame(bool firstFrame) { isClassicFrame = (frameNumber % (CLASSICFRAMETIME / frameTime) == 0); } -FrameNumber CAvaraGame::FramesFromNow(FrameNumber classicFrameCount) { +FrameNumber CAvaraGame::FramesFromNow(double classicFrameCount) { return frameNumber + classicFrameCount / fpsScale; } diff --git a/src/game/CAvaraGame.h b/src/game/CAvaraGame.h index 91eb6058..feeab9cc 100644 --- a/src/game/CAvaraGame.h +++ b/src/game/CAvaraGame.h @@ -269,7 +269,7 @@ class CAvaraGame { virtual FrameNumber NextFrameForPeriod(long period, long referenceFrame = 0); virtual void SetFrameTime(int32_t ft); virtual void IncrementFrame(bool firstFrame = false); - virtual FrameNumber FramesFromNow(FrameNumber classicFrames); + virtual FrameNumber FramesFromNow(double classicFrames); virtual void SetSpawnOrder(SpawnOrder order); void SetKeysFromStdin() { keysFromStdin = true; };