}
else
{
- cvar_set("fraglimit", car(s));
+ sa = car(s);
+ if(sa != "")
+ cvar_set("fraglimit", sa);
s = cdr(s);
}
- cvar_set("timelimit", car(s));
+ sa = car(s);
+ if(sa != "")
+ cvar_set("timelimit", sa);
s = cdr(s);
if(pWantedType == MAPINFO_TYPE_TEAM_DEATHMATCH)
if(pWantedType == MAPINFO_TYPE_CTS)
{
sa = car(s);
- if(sa != "")
- cvar_set("fraglimit", sa);
+
+ // this is the skill of the map
+ // not parsed by anything yet
+ // for map databases
+ //if(sa != "")
+ // cvar_set("fraglimit", sa);
+
s = cdr(s);
}
- sa = car(s);
- if(sa != "")
- cvar_set("leadlimit", sa);
- s = cdr(s);
+ if(pWantedType == MAPINFO_TYPE_ASSAULT || pWantedType == MAPINFO_TYPE_ONSLAUGHT || pWantedType == MAPINFO_TYPE_CTS) // these modes don't use fraglimit
+ {
+ cvar_set("leadlimit", "0");
+ }
+ else
+ {
+ sa = car(s);
+ if(sa != "")
+ cvar_set("leadlimit", sa);
+ s = cdr(s);
+ }
}
float MapInfo_Type_FromString(string t)
for(i = 1; i <= MapInfo_Map_supportedGametypes; i *= 2)
if(MapInfo_Map_supportedGametypes & i)
- fputs(fh, sprintf("type %s %s\n", i, MapInfo_GetDefault(i)));
+ fputs(fh, sprintf("type %s %s\n", MapInfo_Type_ToString(i), MapInfo_GetDefault(i)));
fh2 = fopen(strcat("scripts/", pFilename, ".arena"), FILE_READ);
if(fh2 >= 0)