mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
refactored first_cell_to_draw so that it is changed in one place
This commit is contained in:
parent
c1d002be6c
commit
bb63fcdcda
@ -654,9 +654,7 @@ namespace euclid3 {
|
||||
|
||||
for(int i=0; i<S7; i++)
|
||||
dq::enqueue_by_matrix(h->move(i), V * get_move(h->c7, i));
|
||||
if(c == cwt.at) first_cell_to_draw = false;
|
||||
}
|
||||
first_cell_to_draw = true;
|
||||
}
|
||||
|
||||
transmatrix warppush(coord dif) {
|
||||
|
@ -2542,6 +2542,7 @@ bool drawMonster(const transmatrix& Vparam, int ct, cell *c, color_t col) {
|
||||
if(!mmmon) return true;
|
||||
|
||||
if(hide_player()) {
|
||||
first_cell_to_draw = false;
|
||||
}
|
||||
|
||||
else if(isWorm(m)) {
|
||||
@ -6342,6 +6343,7 @@ void drawthemap() {
|
||||
frameid++;
|
||||
cells_drawn = 0;
|
||||
noclipped = 0;
|
||||
first_cell_to_draw = true;
|
||||
|
||||
wavephase = (-(ticks / 100)) & 7;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user