1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-07 04:47:56 +00:00

protected the loading of modes

This commit is contained in:
Zeno Rogue
2024-06-02 16:51:45 +02:00
parent 43f998453e
commit cd11bc2332
2 changed files with 33 additions and 22 deletions

View File

@@ -202,14 +202,6 @@ int modecodetable[42][6] = {
};
// unused codes: 6 (cheat/tampered), 25, 254, 255
EX eLandStructure get_default_land_structure() {
return
(princess::challenge || tactic::on) ? lsSingle :
racing::on ? lsSingle :
yendor::on ? yendor::get_land_structure() :
lsNiceWalls;
}
EX modecode_t legacy_modecode() {
if(int(geometry) > 3 || int(variation) > 1) return UNKNOWN;
if(casual) return UNKNOWN;