Skip to content

Commit e83f700

Browse files
authored
Fix the marker flickering issue during water cannon effects (Fixes #3313, PR #3314)
1 parent 30a83b0 commit e83f700

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Client/multiplayer_sa/CMultiplayerSA_FrameRateFixes.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ static void _declspec(naked) HOOK_CWaterCannon__Update_OncePerFrame_PushPedFix()
341341
}
342342

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

355-
fstp [esp+0x84]
356-
357355
jmp RETURN_CWaterCannon__Render_FxFix
358356
skip:
359357
jmp RETURN_CWaterCannon__Render_FxFix_SKIP

0 commit comments

Comments
 (0)