refactored first_cell_to_draw so that it is changed in one place

This commit is contained in:
Zeno Rogue 2019-05-11 19:42:30 +02:00
parent c1d002be6c
commit bb63fcdcda
3 changed files with 2 additions and 5 deletions

View File

@ -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) {

View File

@ -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;

View File

@ -497,10 +497,7 @@ namespace reg3 {
for(int d=0; d<S7; d++)
dq::enqueue_by_matrix(h->move(d), V * tmatrices[h->fieldval][d]);
if(c == cwt.at) first_cell_to_draw = false;
}
first_cell_to_draw = true;
}
transmatrix relative_matrix(heptagon *h2, heptagon *h1) override {