cleanup mappack integration
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4248 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -424,6 +424,8 @@ bool load_world(char *mname) // still supports all map formats that have
|
||||
execfile("config/default_map_settings.cfg");
|
||||
execfile(pcfname);
|
||||
execfile(mcfname);
|
||||
const char *pack = getalias("required_mappack");
|
||||
int reqpack = pack ? atoi(pack) : 0;
|
||||
persistidents = true;
|
||||
popscontext();
|
||||
|
||||
@@ -437,6 +439,9 @@ bool load_world(char *mname) // still supports all map formats that have
|
||||
|
||||
startmap(mname);
|
||||
|
||||
pack = getalias("mappack_version");
|
||||
if(pack && atoi(pack) < reqpack) conoutf("\f3this map needs mappack version %d or newer", reqpack);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user