mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-03 20:34:04 +00:00
ads:: clear displayed to prevent crashes
This commit is contained in:
parent
cb89e8f1cb
commit
8770caaa00
@ -82,6 +82,7 @@ void restart() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
ci_at.clear();
|
ci_at.clear();
|
||||||
|
displayed.clear();
|
||||||
|
|
||||||
gen_terrain(vctr, ci_at[vctr], -2);
|
gen_terrain(vctr, ci_at[vctr], -2);
|
||||||
forCellEx(c1, vctr) ci_at[c1].type = wtNone;
|
forCellEx(c1, vctr) ci_at[c1].type = wtNone;
|
||||||
@ -137,6 +138,7 @@ void run_ads_game() {
|
|||||||
void add_ads_cleanup() {
|
void add_ads_cleanup() {
|
||||||
rogueviz::on_cleanup_or_next([] {
|
rogueviz::on_cleanup_or_next([] {
|
||||||
switch_spacetime_to(true);
|
switch_spacetime_to(true);
|
||||||
|
displayed.clear();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -708,6 +708,7 @@ void ds_restart() {
|
|||||||
|
|
||||||
rocks.clear();
|
rocks.clear();
|
||||||
history.clear();
|
history.clear();
|
||||||
|
displayed.clear();
|
||||||
init_ds_game();
|
init_ds_game();
|
||||||
reset_textures();
|
reset_textures();
|
||||||
pick_textures();
|
pick_textures();
|
||||||
@ -739,6 +740,7 @@ void run_ds_game() {
|
|||||||
void add_ds_cleanup() {
|
void add_ds_cleanup() {
|
||||||
rogueviz::on_cleanup_or_next([] {
|
rogueviz::on_cleanup_or_next([] {
|
||||||
main_rock = nullptr;
|
main_rock = nullptr;
|
||||||
|
displayed.clear();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user