From bdef83449e6273b18a7d10e8b58225f51a0d0212 Mon Sep 17 00:00:00 2001 From: "ALLEN-PC\\acj30" Date: Wed, 25 Oct 2023 10:46:34 -0500 Subject: [PATCH] Fix mapspawn_addon not loading from VPK paths --- sp/src/game/shared/vscript_shared.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sp/src/game/shared/vscript_shared.cpp b/sp/src/game/shared/vscript_shared.cpp index 9f1d610c..8ab2ac97 100644 --- a/sp/src/game/shared/vscript_shared.cpp +++ b/sp/src/game/shared/vscript_shared.cpp @@ -453,8 +453,7 @@ void RunAddonScripts() // mapspawn_addon char fullpath[MAX_PATH]; - Q_snprintf( fullpath, sizeof( fullpath ), "%sscripts/vscripts/mapspawn_addon", path ); - Q_FixSlashes( fullpath ); + Q_ComposeFileName( path, "scripts/vscripts/mapspawn_addon", fullpath, sizeof( fullpath ) ); VScriptRunScriptAbsolute( fullpath, NULL, false, folderName ); }