diff --git a/rogueviz/ads/ads-game.cpp b/rogueviz/ads/ads-game.cpp index a497f6c4..8c307928 100644 --- a/rogueviz/ads/ads-game.cpp +++ b/rogueviz/ads/ads-game.cpp @@ -70,6 +70,13 @@ void set_default_keys() { void restart() { + if(in_spacetime()) { + switch_spacetime(); + restart(); + switch_spacetime(); + return; + } + hybrid::in_actual([&] { vctr = new_vctr = starting_point; vctrV = new_vctrV = current = ads_matrix(Id, 0); diff --git a/rogueviz/ads/ds-game.cpp b/rogueviz/ads/ds-game.cpp index dc509828..09cf2a5e 100644 --- a/rogueviz/ads/ds-game.cpp +++ b/rogueviz/ads/ds-game.cpp @@ -646,6 +646,13 @@ void view_ds_game() { void ds_restart() { + if(in_spacetime()) { + switch_spacetime(); + ds_restart(); + switch_spacetime(); + return; + } + main_rock = nullptr; if(true) {