diff --git a/AccuracyFix/AccuracyFix.cpp b/AccuracyFix/AccuracyFix.cpp index d61da41..262ffb7 100644 --- a/AccuracyFix/AccuracyFix.cpp +++ b/AccuracyFix/AccuracyFix.cpp @@ -37,15 +37,15 @@ void CAccuracyFix::ServerActivate() } } - //auto Path = gAccuracyUtil.GetPath(); - - //if (Path) - //{ - // if (Path[0u] != '\0') - // { - // gAccuracyUtil.ServerCommand("exec %s/accuracyfix.cfg", Path); - // } - //} + auto Path = gAccuracyUtil.GetPath(); + + if (Path) + { + if (Path[0u] != '\0') + { + gAccuracyUtil.ServerCommand("exec %s/accuracyfix.cfg", Path); + } + } } void CAccuracyFix::TraceLine(const float* vStart, const float* vEnd, int fNoMonsters, edict_t* pentToSkip, TraceResult* ptr) diff --git a/AccuracyFix/Makefile b/AccuracyFix/Makefile index 2f78471..337e745 100644 --- a/AccuracyFix/Makefile +++ b/AccuracyFix/Makefile @@ -19,7 +19,7 @@ OBJECTS = *.cpp LINKER = -static-libgcc -static-libstdc++ # C flags -CFLAGS = -std=gnu++11 -shared -m32 -mtune=generic -msse3 -msse4.1 -pipe -g0 -O3 -s -flto -funroll-loops -fno-stack-protector -g -DNDEBUG -Dlinux -D__linux__ -DGLIBCXX_USE_CXX11_ABI=1 -U_FORTIFY_SOURCE +CFLAGS = -std=gnu++11 -shared -m32 -msse3 -msse4.1 -pipe -g0 -O3 -s -flto -funroll-loops -fno-stack-protector -g -DNDEBUG -Dlinux -D__linux__ -DGLIBCXX_USE_CXX11_ABI=1 -U_FORTIFY_SOURCE # Include directory INCLUDE = -I. -I$(CSSDK)/common -I$(CSSDK)/dlls -I$(CSSDK)/engine -I$(CSSDK)/game_shared -I$(CSSDK)/pm_shared -I$(CSSDK)/public -I$(METAMOD) diff --git a/AccuracyFix/MetaMod.cpp b/AccuracyFix/MetaMod.cpp index e20c099..5957ff6 100644 --- a/AccuracyFix/MetaMod.cpp +++ b/AccuracyFix/MetaMod.cpp @@ -9,7 +9,7 @@ plugin_info_t Plugin_info = "SmileY", "https://pugbr.net", "AF", - PT_STARTUP, + PT_ANYTIME, PT_ANYTIME, };