diff --git a/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc b/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc index 198d913..a4f7096 100644 --- a/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc +++ b/reapi/extra/amxmodx/scripting/include/reapi_gamedll_const.inc @@ -584,8 +584,8 @@ enum GamedllFunc_CSGameRules /* * Description: Recreate all the map entities from the map data (preserving their indices), - * then remove everything else except the players. - * Also get rid of all world decals. + * then remove everything else except the players. + * Also get rid of all world decals. * Params: () */ RG_CSGameRules_CleanUpMap, diff --git a/reapi/src/amxxmodule.cpp b/reapi/src/amxxmodule.cpp index 0d2482b..9318e50 100644 --- a/reapi/src/amxxmodule.cpp +++ b/reapi/src/amxxmodule.cpp @@ -233,11 +233,11 @@ NOINLINE void AMXX_Error(AMX *amx, const char *fmt, ...) auto scriptName = g_amxxapi.GetAmxScriptName(g_amxxapi.FindAmxScriptByAmx(amx)); if (scriptName) { - if ((scriptName = strrchr(scriptName, '/'))) + if ((scriptName = strrchr(scriptName, CORRECT_PATH_SEPARATOR))) scriptName++; } - g_amxxapi.Log("[%s] %s", scriptName, msg); + g_amxxapi.LogError(amx, AMX_ERR_ASSERT, "[%s] %s", scriptName, msg); } char* getAmxString(cell* src, char* dest, size_t max, size_t* len)