Skip to content

Commit

Permalink
Execute amxx.cfg before plugin_init to keep compatibility (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkshine committed Aug 20, 2018
1 parent 05b7411 commit eff74fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion amxmodx/meta_api.cpp
Expand Up @@ -657,10 +657,11 @@ void C_ServerActivate_Post(edict_t *pEdictList, int edictCount, int clientMax)
pPlayer->Init(pEdictList + i, i);
}

CoreCfg.ExecuteMainConfig(); // Execute amxx.cfg

executeForwards(FF_PluginInit);
executeForwards(FF_PluginCfg);

CoreCfg.ExecuteMainConfig(); // Execute amxx.cfg
CoreCfg.ExecuteAutoConfigs(); // Execute configs created with AutoExecConfig native.
CoreCfg.SetMapConfigTimer(6.1); // Prepare per-map configs to be executed 6.1 seconds later.
// Original value which was used in admin.sma.
Expand Down

0 comments on commit eff74fe

Please sign in to comment.