mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
ads-game:: restart bugfix
This commit is contained in:
parent
fcd54e3d62
commit
f46279843d
@ -22,18 +22,16 @@ void change_default_key(int key, int val) {
|
||||
}
|
||||
|
||||
void restart() {
|
||||
cell *c;
|
||||
|
||||
hybrid::in_actual([&] {
|
||||
vctr = new_vctr = starting_point;
|
||||
vctrV = new_vctrV = ads_matrix(Id, 0);
|
||||
init_rsrc();
|
||||
c = hybrid::get_where(vctr).first;
|
||||
});
|
||||
|
||||
ci_at.clear();
|
||||
|
||||
gen_terrain(vctr, ci_at[c], -2);
|
||||
gen_terrain(vctr, ci_at[vctr], -2);
|
||||
forCellEx(c1, vctr) ci_at[c1].type = wtNone;
|
||||
ci_at[vctr].type = wtNone;
|
||||
invincibility_pt = how_much_invincibility;
|
||||
|
Loading…
Reference in New Issue
Block a user