From 5f8d250940e1777706a4dec088f81d8172129a8d Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 24 Mar 2024 00:51:00 +0100 Subject: [PATCH] refactored gen_landvisited --- geom-exp.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/geom-exp.cpp b/geom-exp.cpp index 610b951f..071e9a33 100644 --- a/geom-exp.cpp +++ b/geom-exp.cpp @@ -152,11 +152,8 @@ void validity_info() { EX bool showquotients; string validclasses[4] = {" (X)", " (½)", "", " (!)"}; - -EX void ge_land_selection() { - cmode = sm::SIDE | sm::MAYDARK; - gamescreen(); +EX void gen_landvisited() { if(cheater) for(int i=0; i= 1; landvisited[laCA] = true; landvisited[laAsteroids] = true; + } + +EX void ge_land_selection() { + cmode = sm::SIDE | sm::MAYDARK; + gamescreen(); + + gen_landvisited(); dialog::init(XLAT("select the starting land")); if(dialog::infix != "") mouseovers = dialog::infix;