mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-15 17:54:48 +00:00
bringris:: added get_center
This commit is contained in:
parent
6f8b986d67
commit
d037aa0fef
@ -1415,10 +1415,14 @@ void run() {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cell *get_center() {
|
||||||
|
return well_center ? well_center : level[0];
|
||||||
|
}
|
||||||
|
|
||||||
void reset_view() {
|
void reset_view() {
|
||||||
centerover = get_at(level[0], -camera_level);
|
centerover = get_at(get_center(), -camera_level);
|
||||||
cwt.at = centerover;
|
cwt.at = centerover;
|
||||||
ncenter = get_at(level[0], -camera_level);
|
ncenter = get_at(get_center(), -camera_level);
|
||||||
|
|
||||||
NLP = Id;
|
NLP = Id;
|
||||||
tView = Id;
|
tView = Id;
|
||||||
@ -1452,7 +1456,7 @@ void start_new_game() {
|
|||||||
c->landparam = (get_hipso(z) & 0xFCFCFC) >> 2;
|
c->landparam = (get_hipso(z) & 0xFCFCFC) >> 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
at = get_at(level[0], -well_size - 1);
|
at = get_at(get_center(), -well_size - 1);
|
||||||
next_shape_id = choose_piece();
|
next_shape_id = choose_piece();
|
||||||
|
|
||||||
state = tsBetween;
|
state = tsBetween;
|
||||||
|
Loading…
Reference in New Issue
Block a user