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:
ac_stef
2009-03-06 17:55:29 +00:00
parent 28d76571b4
commit ee9336fadc
3 changed files with 32 additions and 21 deletions
+5
View File
@@ -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;
}