mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-12 22:22:49 +00:00
fixed hunting flashes
This commit is contained in:
parent
26fb19e7a8
commit
e5a2116958
22
graph.cpp
22
graph.cpp
@ -4118,8 +4118,22 @@ void drawFlashes() {
|
|||||||
for(int k=0; k<isize(flashes); k++) {
|
for(int k=0; k<isize(flashes); k++) {
|
||||||
bool kill = true;
|
bool kill = true;
|
||||||
flashdata& f = flashes[k];
|
flashdata& f = flashes[k];
|
||||||
ADC(V, f.where) {
|
bool copies = false;
|
||||||
|
ADC(V, f.where) copies = true, draw_flash(f, V, kill);
|
||||||
|
forCellIdEx(c2, id, f.where) if(!copies) ADC(V, c2) {
|
||||||
|
draw_flash(f, V * currentmap->iadj(f.where, id), kill);
|
||||||
|
copies = true;
|
||||||
|
}
|
||||||
|
if(kill) {
|
||||||
|
f = flashes[isize(flashes)-1];
|
||||||
|
flashes.pop_back(); k--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
#if CAP_QUEUE
|
||||||
|
EX void draw_flash(struct flashdata& f, const transmatrix& V, bool& kill) {
|
||||||
int tim = ticks - f.t;
|
int tim = ticks - f.t;
|
||||||
|
|
||||||
if(tim <= f.size && !f.spd) kill = false;
|
if(tim <= f.size && !f.spd) kill = false;
|
||||||
@ -4180,13 +4194,7 @@ void drawFlashes() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(kill) {
|
|
||||||
f = flashes[isize(flashes)-1];
|
|
||||||
flashes.pop_back(); k--;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
|
|
||||||
EX bool allowIncreasedSight() {
|
EX bool allowIncreasedSight() {
|
||||||
if(cheater || autocheat) return true;
|
if(cheater || autocheat) return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user