1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-26 11:27:39 +00:00

moved the implementation of -noplayer and -canvas options from mapeditor to pattern, as they are relevant without map editor (e.g. online)

This commit is contained in:
Zeno Rogue
2018-09-02 15:10:50 +02:00
parent dc7e60952b
commit 98f6851288
2 changed files with 12 additions and 11 deletions

View File

@@ -2292,6 +2292,18 @@ int read_pattern_args() {
shift(); linepatterns::patterns[id].color = arghex();
}
else if(argis("-noplayer")) mapeditor::drawplayer = !mapeditor::drawplayer;
else if(argis("-canvas")) {
PHASEFROM(2);
stop_game();
firstland = specialland = laCanvas;
shift();
if(args() == "i") canvas_invisible = !canvas_invisible;
else if(args().size() == 1) patterns::whichCanvas = args()[0];
else patterns::canvasback = arghex();
stop_game_and_switch_mode(rg::nothing);
}
else return 1;
return 0;
}