Skip to content

Commit

Permalink
Fix one big issue what broken all plugins! (#1022)
Browse files Browse the repository at this point in the history
If found any config from servercmd, m_ConfigsExecutedForward not called !!!!!!!
If m_ConfigsExecutedForward  not called, this is broke all plugins where used m_ConfigsExecutedForward (example restmenu)
  • Loading branch information
Unreal Karaulov committed Dec 3, 2021
1 parent f8ac58c commit 275be8b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions amxmodx/CoreConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,10 @@ void CoreConfig::CheckLegacyBufferedCommand(char *command)
return;
}

if (!m_LegacyMainConfigExecuted && strstr(command, MainConfigFile))
if (!m_LegacyMainConfigExecuted && (strstr(command, MainConfigFile) || strstr(command, MapConfigDir)))
{
m_LegacyMainConfigExecuted = true;
}

if (!m_LegacyMapConfigsExecuted && strstr(command, MapConfigDir))
{
m_LegacyMapConfigsExecuted = true;
m_PendingForwardPush = true;

This comment has been minimized.

Copy link
@UnrealKaraulov

UnrealKaraulov Dec 4, 2021

Contributor

My mistake, misprint and instead of calling map config, this is just execute forward and stop works. I'm sorry 🥺🥺🥺

}
}

Expand Down

0 comments on commit 275be8b

Please sign in to comment.