cfg: reworked map-specific configs, so they are now located in yapb/conf/maps/*map*.cfg
cmd: fixed handling "yb" & "yapb" command prefixes.
This commit is contained in:
parent
a22cc6db93
commit
c74d8e91e4
14 changed files with 797 additions and 755 deletions
|
|
@ -309,10 +309,10 @@ CR_EXPORT int GetEntityAPI (gamefuncs_t *table, int) {
|
|||
// execute main config
|
||||
conf.loadMainConfig ();
|
||||
|
||||
if (File::exists (strings.format ("%s/maps/%s_%s.cfg", game.getModName (), game.getMapName (), product.folder))) {
|
||||
game.serverCommand ("exec maps/%s_%s.cfg", game.getMapName (), product.folder);
|
||||
game.print ("Executing Map-Specific config file");
|
||||
}
|
||||
// load map-specific config
|
||||
conf.loadMapSpecificConfig ();
|
||||
|
||||
// initialize quota management
|
||||
bots.initQuota ();
|
||||
|
||||
if (game.is (GameFlags::Metamod)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue