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:
parent
2297c6df7a
commit
b592e8ea57
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user