From 74d825739eb2558d681f32ac03f9e460792d1f12 Mon Sep 17 00:00:00 2001 From: Steven Date: Sun, 8 May 2022 13:29:10 +0100 Subject: [PATCH 1/2] #234 - Added missing Sound_ConvertTokens call to Bossgame7_PlaySnd. Needs tested once dekomori2/testsv is online --- src/scripting/Bossgames/Bossgame7.sp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/scripting/Bossgames/Bossgame7.sp b/src/scripting/Bossgames/Bossgame7.sp index 75b4167d..65cdf2c8 100644 --- a/src/scripting/Bossgames/Bossgame7.sp +++ b/src/scripting/Bossgames/Bossgame7.sp @@ -988,10 +988,9 @@ public int GetEntityId(const char[] entityType, const char[] name) public void Bossgame7_PlaySnd(int client, const char[] file) { - char path[128]; - + char path[MAX_PATH_LENGTH]; Format(path, sizeof(path), "play %s", file); - + Sounds_ConvertTokens(sound, path, sizeof(path)); ClientCommand(client, path); } From f2413e6237c4594c208b9b4115905322b32667da Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 18 May 2022 19:58:28 +0100 Subject: [PATCH 2/2] Fix build error; bump version --- src/scripting/AS-MicroTF2.sp | 2 +- src/scripting/Bossgames/Bossgame7.sp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripting/AS-MicroTF2.sp b/src/scripting/AS-MicroTF2.sp index 474ba87c..a181cf67 100644 --- a/src/scripting/AS-MicroTF2.sp +++ b/src/scripting/AS-MicroTF2.sp @@ -26,7 +26,7 @@ //#define DEBUG //#define LOGGING_STARTUP -#define PLUGIN_VERSION "5.2.3" +#define PLUGIN_VERSION "5.2.4" #define PLUGIN_PREFIX "\x0700FFFF[ \x07FFFF00WarioWare \x0700FFFF] {default}" #define PLUGIN_MAPPREFIX "warioware_redux_" diff --git a/src/scripting/Bossgames/Bossgame7.sp b/src/scripting/Bossgames/Bossgame7.sp index 65cdf2c8..91f329e9 100644 --- a/src/scripting/Bossgames/Bossgame7.sp +++ b/src/scripting/Bossgames/Bossgame7.sp @@ -989,8 +989,8 @@ public int GetEntityId(const char[] entityType, const char[] name) public void Bossgame7_PlaySnd(int client, const char[] file) { char path[MAX_PATH_LENGTH]; - Format(path, sizeof(path), "play %s", file); - Sounds_ConvertTokens(sound, path, sizeof(path)); + Sounds_ConvertTokens(file, path, sizeof(path)); + Format(path, sizeof(path), "play %s", path); ClientCommand(client, path); }