1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-13 08:59:27 +00:00

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

View File

@ -129,10 +129,13 @@ EX bool wrongMode(char flags) {
if(tour::on) return true; if(tour::on) return true;
#endif #endif
eLandStructure dls = lsNiceWalls; eLandStructure dls = lsNiceWalls;
if(flags == rg::special_geometry || flags == rg::racing || flags == rg::princess) if(flags == rg::special_geometry || flags == rg::princess)
dls = lsSingle; dls = lsSingle;
if(flags == rg::chaos) if(flags == rg::chaos)
dls = lsChaos; 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(land_structure != dls) return true;
if(numplayers() > 1 && !multi::friendly_fire) return true; if(numplayers() > 1 && !multi::friendly_fire) return true;