mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-22 09:27:40 +00:00
ads-game:: no more crash when trying to restart while in spacetime
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user