Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the marker flickering issue during water cannon effects (#3313) #3314

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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