From 78b1154b8d31d0a5d74c7f9126f2308b93c8d6bb Mon Sep 17 00:00:00 2001 From: Arkshine Date: Mon, 20 Jul 2015 09:35:13 +0200 Subject: [PATCH] AutoExecConfig: Do not traumatize Travis and Nextra --- amxmodx/CPlugin.cpp | 2 -- amxmodx/CoreConfig.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/amxmodx/CPlugin.cpp b/amxmodx/CPlugin.cpp index 4dea3c6f..375b3125 100755 --- a/amxmodx/CPlugin.cpp +++ b/amxmodx/CPlugin.cpp @@ -754,5 +754,3 @@ void CPluginMngr::CALMFromFile(const char *file) fclose(fp); } - - diff --git a/amxmodx/CoreConfig.cpp b/amxmodx/CoreConfig.cpp index 8ed2fd31..e424f8f9 100644 --- a/amxmodx/CoreConfig.cpp +++ b/amxmodx/CoreConfig.cpp @@ -255,7 +255,7 @@ void CoreConfig::ExecuteMapConfig() char *mapPrefix; - if (mapPrefix = strtok(mapName, "_")) + if ((mapPrefix = strtok(mapName, "_"))) { UTIL_Format(cfgPath, sizeof(cfgPath), "%s/%s%s/prefix_%s.cfg", g_mod_name.chars(), configsDir, MapConfigDir, mapPrefix);