mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 14:58:06 +03:00
Restore default cfg before execute new!
Restore default cfg before execute new!
This commit is contained in:
parent
a4e929eedc
commit
83ededb3cb
@ -263,7 +263,15 @@ void CoreConfig::ExecuteMapConfig()
|
||||
strncopy(mapName, STRING(gpGlobals->mapname), sizeof(mapName));
|
||||
|
||||
char *mapPrefix;
|
||||
|
||||
ke::SafeSprintf(cfgPath, sizeof(cfgPath), "%s/%s%s/default.cfg", g_mod_name.chars(), configsDir, MapConfigDir);
|
||||
|
||||
if (g_LibSys.IsPathFile(cfgPath))
|
||||
{
|
||||
ke::SafeSprintf(command, sizeof(command), CommandFormat, cfgPath);
|
||||
SERVER_COMMAND(command);
|
||||
}
|
||||
|
||||
if ((mapPrefix = strtok(mapName, "_")))
|
||||
{
|
||||
ke::SafeSprintf(cfgPath, sizeof(cfgPath), "%s/%s%s/prefix_%s.cfg", g_mod_name.chars(), configsDir, MapConfigDir, mapPrefix);
|
||||
|
Loading…
x
Reference in New Issue
Block a user