}
else if(t == "fog")
{
- if not(cvar_value_issafe(t))
+ if not(cvar_value_issafe(s))
print("Map ", pFilename, " contains a potentially harmful fog setting, ignored\n");
else
MapInfo_Map_fog = s;
}
else if(t == "cdtrack")
{
- if(pGametypeToSet)
+ t = car(s); s = cdr(s); a = stof(t);
+ if(pGametypeToSet) // FIXME is this check right here?
{
if not(cvar_value_issafe(t))
print("Map ", pFilename, " contains a potentially harmful cdtrack, ignored\n");
else
MapInfo_Map_clientstuff = strcat(
- MapInfo_Map_clientstuff, "cd loop \"", s, "\"\n"
+ MapInfo_Map_clientstuff, "cd loop \"", t, "\"\n"
);
}
}