1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

fixed modecodes for yendor and tactic despite the ls change

This commit is contained in:
Zeno Rogue 2021-04-15 19:08:10 +02:00
parent 8f91990de6
commit a4fda1b843
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ int modecodetable[42][6] = {
EX modecode_t legacy_modecode() {
if(int(geometry) > 3 || int(variation) > 1) return UNKNOWN;
if(!ls::nice_walls() && !ls::std_chaos()) return UNKNOWN;
if(!ls::nice_walls() && !ls::std_chaos() && !yendor::on && !tactic::on) return UNKNOWN;
// compute the old code
int xcode = 0;

View File

@ -1069,7 +1069,7 @@ char xcheat;
void save_mode_data(hstream& f) {
mapstream::save_geometry(f);
if(yendor::on)
if(yendor::on || tactic::on)
f.write<char>(0);
else
f.write<char>(land_structure);