Remove get_parm_value use for type=anarchy mission loader

This commit is contained in:
Kp 2012-07-15 18:07:50 +00:00
parent 86a88bedbd
commit 4e7e3fa0c8

View file

@ -435,11 +435,16 @@ static int read_mission_file(mle *mission, const char *filename, enum mle_loc lo
return 0; return 0;
} }
p = get_parm_value("type",mfile); if (PHYSFSX_fgets(temp,mfile))
{
//get mission type if (istok(temp,"type"))
if (p) {
mission->anarchy_only_flag = istok(p,"anarchy"); p = get_value(temp);
//get mission type
if (p)
mission->anarchy_only_flag = istok(p,"anarchy");
}
}
PHYSFS_close(mfile); PHYSFS_close(mfile);