mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-05 21:33:58 +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() {
|
void restart() {
|
||||||
cell *c;
|
|
||||||
|
|
||||||
hybrid::in_actual([&] {
|
hybrid::in_actual([&] {
|
||||||
vctr = new_vctr = starting_point;
|
vctr = new_vctr = starting_point;
|
||||||
vctrV = new_vctrV = ads_matrix(Id, 0);
|
vctrV = new_vctrV = ads_matrix(Id, 0);
|
||||||
init_rsrc();
|
init_rsrc();
|
||||||
c = hybrid::get_where(vctr).first;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
ci_at.clear();
|
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;
|
forCellEx(c1, vctr) ci_at[c1].type = wtNone;
|
||||||
ci_at[vctr].type = wtNone;
|
ci_at[vctr].type = wtNone;
|
||||||
invincibility_pt = how_much_invincibility;
|
invincibility_pt = how_much_invincibility;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user