Skip to content

Commit 776de96

Browse files
FileEXDutchman101
andauthored
Potential fix for weird NaN values (#4174)
* Fix bug * Update CMultiplayerSA_FrameRateFixes.cpp * Update CMultiplayerSA_FrameRateFixes.cpp --------- Co-authored-by: Dutchman101 <12105539+Dutchman101@users.noreply.github.com>
1 parent bd999a5 commit 776de96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Client/multiplayer_sa/CMultiplayerSA_FrameRateFixes.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ static void __declspec(naked) HOOK_CWeapon_Update()
602602
fmul st(0), st(1) // (m_timeToNextShootInMS - CTimer::m_snTimeInMilliseconds) * (timeStep / kOriginalTimeStep)
603603
fadd st(0), ebx // + m_snTimeInMilliseconds
604604
fistp [esi+10h]
605+
fstp st(0)
605606

606607
mov eax, ebx
607608

0 commit comments

Comments
 (0)