ignore the land structure for the racing achievement

This commit is contained in:
Zeno Rogue 2022-10-06 12:56:50 +02:00
parent 8b6effba1b
commit 07ce60c3ef
1 changed files with 4 additions and 1 deletions

View File

@ -129,10 +129,13 @@ EX bool wrongMode(char flags) {
if(tour::on) return true;
#endif
eLandStructure dls = lsNiceWalls;
if(flags == rg::special_geometry || flags == rg::racing || flags == rg::princess)
if(flags == rg::special_geometry || flags == rg::princess)
dls = lsSingle;
if(flags == rg::chaos)
dls = lsChaos;
/* in the official racing achievements, the tracks are saved maps anyway */
if(flags == rg::racing)
dls = land_structure;
if(land_structure != dls) return true;
if(numplayers() > 1 && !multi::friendly_fire) return true;