1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-18 17:10:20 +00:00

fixed several instances when PTM score would not be recorded when changing modes

This commit is contained in:
Zeno Rogue
2018-07-11 12:25:19 +02:00
parent 332bae84de
commit c9f5b1e048
8 changed files with 11 additions and 3 deletions

View File

@@ -1358,27 +1358,27 @@ namespace patterns {
};
dialog::openColorDialog(c, canvasbacks);
dialog::reaction = [] () {
stop_game();
whichCanvas = 'g';
canvasback = c >> 8;
firstland = specialland = laCanvas;
randomPatternsMode = false;
stop_game();
start_game();
};
}
else if(uni == 'i') {
stop_game();
canvas_invisible = !canvas_invisible;
firstland = specialland = laCanvas;
randomPatternsMode = false;
stop_game();
start_game();
}
else if((uni >= 'a' && uni <= 'z') || (uni >= 'A' && uni <= 'Z')) {
stop_game();
whichCanvas = uni;
subcanvas = rand();
firstland = specialland = laCanvas;
randomPatternsMode = false;
stop_game();
start_game();
if(uni == 'x' || uni == 'z' || uni == 't')
whichPattern = PAT_ZEBRA, subpattern_flags = SPF_SYM0123 | SPF_ROT;