Execute amxx.cfg before plugin_init to keep compatibility (#512)

This commit is contained in:
Vincent Herbet 2018-08-20 19:46:26 +02:00 committed by GitHub
parent 05b74111d3
commit eff74fe862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.