From 4ba6f751b173e902dd15d3c830932d9ba5b8ff7a Mon Sep 17 00:00:00 2001 From: mourningsickness Date: Tue, 6 Jan 2026 14:05:09 -0800 Subject: [PATCH] update Shavit_OnReplaySaved forward to bhoptimer 4.0 also added a client index check a while ago, to prevent an error if a client disconnects immediately after getting a wr --- addons/sourcemod/scripting/sourcejump.sp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/sourcemod/scripting/sourcejump.sp b/addons/sourcemod/scripting/sourcejump.sp index 3de1ec4..bcb78e9 100644 --- a/addons/sourcemod/scripting/sourcejump.sp +++ b/addons/sourcemod/scripting/sourcejump.sp @@ -8,7 +8,7 @@ #pragma semicolon 1 native float Shavit_GetWorldRecord(int style, int track); -forward void Shavit_OnReplaySaved(int client, int style, float time, int jumps, int strafes, float sync, int track, float oldtime, float perfs, float avgvel, float maxvel, int timestamp, bool isbestreplay, bool istoolong, bool iscopy, const char[] replaypath); +forward void Shavit_OnReplaySaved(int client, int style, float time, int jumps, int strafes, float sync, int track, float oldtime, float perfs, float avgvel, float maxvel, int timestamp, bool isbestreplay, bool istoolong, ArrayList replaypaths, ArrayList frames, int preframes, int postframes, const char[] name); forward void OnTimerFinished_Post(int client, float Time, int Type, int Style, bool tas, bool NewTime, int OldPosition, int NewPosition); forward void FuckItHops_OnWorldRecord(int client, int style, float time, int jumps, int strafes, float sync, int track); @@ -172,9 +172,9 @@ public Action Command_GetAllWRs(int client, int args) return Plugin_Handled; } -public void Shavit_OnReplaySaved(int client, int style, float time, int jumps, int strafes, float sync, int track, float oldtime, float perfs, float avgvel, float maxvel, int timestamp, bool isbestreplay, bool istoolong, bool iscopy, const char[] replaypath) +public void Shavit_OnReplaySaved(int client, int style, float time, int jumps, int strafes, float sync, int track, float oldtime, float perfs, float avgvel, float maxvel, int timestamp, bool isbestreplay, bool istoolong, ArrayList replaypaths, ArrayList frames, int preframes, int postframes, const char[] name) { - if(style != 0 || track != 0 || gI_TimerVersion != TimerVersion_shavit) + if(style != 0 || track != 0 || gI_TimerVersion != TimerVersion_shavit || client == 0) { return; }