Skip to content

Commit

Permalink
Fix the marker flickering issue during water cannon effects (Fixes #3313
Browse files Browse the repository at this point in the history
, PR #3314)
  • Loading branch information
Merlin committed Feb 19, 2024
1 parent 30a83b0 commit e83f700
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Client/multiplayer_sa/CMultiplayerSA_FrameRateFixes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ static void _declspec(naked) HOOK_CWaterCannon__Update_OncePerFrame_PushPedFix()
}

// Fixes excessive particle spawning from water cannons on high FPS.
#define HOOKPOS_CWaterCannon__Render_FxFix 0x729430
#define HOOKSIZE_CWaterCannon__Render_FxFix 0x7
#define HOOKPOS_CWaterCannon__Render_FxFix 0x729437
#define HOOKSIZE_CWaterCannon__Render_FxFix 0x5
static const unsigned int RETURN_CWaterCannon__Render_FxFix = 0x729440;
static const unsigned int RETURN_CWaterCannon__Render_FxFix_SKIP = 0x7294EE;
static void _declspec(naked) HOOK_CWaterCannon__Render_FxFix()
Expand All @@ -352,8 +352,6 @@ static void _declspec(naked) HOOK_CWaterCannon__Render_FxFix()
test edx, edx
jz skip

fstp [esp+0x84]

jmp RETURN_CWaterCannon__Render_FxFix
skip:
jmp RETURN_CWaterCannon__Render_FxFix_SKIP
Expand Down

0 comments on commit e83f700

Please sign in to comment.