1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-30 03:50:34 +00:00

resetview in tour

This commit is contained in:
Zeno Rogue 2019-05-30 17:47:54 +02:00
parent e81912c11e
commit 2ab58e6eb7

View File

@ -28,6 +28,7 @@ void setCanvas(presmode mode, char canv) {
ld = firstland; ld = firstland;
firstland = laCanvas; firstland = laCanvas;
start_game(); start_game();
resetview();
} }
if(mode == pmStop) { if(mode == pmStop) {
gamestack::pop(); gamestack::pop();
@ -173,6 +174,7 @@ bool handleKeyTour(int sym, int uni) {
break; break;
} }
start_game(); start_game();
resetview();
presentation(pmGeometryStart); presentation(pmGeometryStart);
string x; string x;
if(slides[currentslide].flags & USE_SLIDE_NAME) { if(slides[currentslide].flags & USE_SLIDE_NAME) {
@ -773,6 +775,7 @@ slide default_slides[] = {
gamestack::push(); gamestack::push();
switch_game_mode(rg::shmup); switch_game_mode(rg::shmup);
start_game(); start_game();
resetview();
} }
if(mode == 3) { if(mode == 3) {
shmup::clearMonsters(); shmup::clearMonsters();