mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-28 05:33:21 +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++)
|
for(int i=0; i<S7; i++)
|
||||||
dq::enqueue_by_matrix(h->move(i), V * get_move(h->c7, 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) {
|
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(!mmmon) return true;
|
||||||
|
|
||||||
if(hide_player()) {
|
if(hide_player()) {
|
||||||
|
first_cell_to_draw = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if(isWorm(m)) {
|
else if(isWorm(m)) {
|
||||||
@ -6342,6 +6343,7 @@ void drawthemap() {
|
|||||||
frameid++;
|
frameid++;
|
||||||
cells_drawn = 0;
|
cells_drawn = 0;
|
||||||
noclipped = 0;
|
noclipped = 0;
|
||||||
|
first_cell_to_draw = true;
|
||||||
|
|
||||||
wavephase = (-(ticks / 100)) & 7;
|
wavephase = (-(ticks / 100)) & 7;
|
||||||
|
|
||||||
|
3
reg3.cpp
3
reg3.cpp
@ -497,10 +497,7 @@ namespace reg3 {
|
|||||||
|
|
||||||
for(int d=0; d<S7; d++)
|
for(int d=0; d<S7; d++)
|
||||||
dq::enqueue_by_matrix(h->move(d), V * tmatrices[h->fieldval][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 {
|
transmatrix relative_matrix(heptagon *h2, heptagon *h1) override {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user