Error fix in LogEvent that caused the plugin to basically break down on maps with post configs. (Error stopped the entire call stack for all config loading)

Added an extra logic statement in napalm.
This commit is contained in:
Greyscale 2009-07-15 17:58:20 -07:00
parent 2297c6df7a
commit b592e8ea57
2 changed files with 7 additions and 1 deletions

View File

@ -254,7 +254,7 @@ ConfigOnModulesLoaded()
ServerCommand("exec %s", mapconfig);
// Log action.
LogEvent(false, LogType_Normal, LOG_CORE_EVENTS, LogModule_Config, "Executed post map config file: %s", path);
LogEvent(false, LogType_Normal, LOG_CORE_EVENTS, LogModule_Config, "Post Map Configs", "Executed post map config file: %s", path);
}
/**

View File

@ -39,6 +39,12 @@
*/
NapalmOnClientHurt(client, attacker, const String:weapon[])
{
// If there's no attacker, then stop.
if (!attacker)
{
return;
}
// If player isn't a zombie, then stop.
if (!InfectIsClientInfected(client))
{