Fix mapspawn_addon not loading from VPK paths

This commit is contained in:
ALLEN-PC\acj30 2023-10-25 10:46:34 -05:00
parent c3f0509e72
commit bdef83449e

View File

@ -453,8 +453,7 @@ void RunAddonScripts()
// mapspawn_addon // mapspawn_addon
char fullpath[MAX_PATH]; char fullpath[MAX_PATH];
Q_snprintf( fullpath, sizeof( fullpath ), "%sscripts/vscripts/mapspawn_addon", path ); Q_ComposeFileName( path, "scripts/vscripts/mapspawn_addon", fullpath, sizeof( fullpath ) );
Q_FixSlashes( fullpath );
VScriptRunScriptAbsolute( fullpath, NULL, false, folderName ); VScriptRunScriptAbsolute( fullpath, NULL, false, folderName );
} }