From 07ce60c3ef7424e8f6467d8e44a70bb759dbb302 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 6 Oct 2022 12:56:50 +0200 Subject: [PATCH] ignore the land structure for the racing achievement --- achievement.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/achievement.cpp b/achievement.cpp index 98a71f31..de57e064 100644 --- a/achievement.cpp +++ b/achievement.cpp @@ -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;