fixed hunting flashes

This commit is contained in:
Zeno Rogue 2019-12-08 19:33:17 +01:00
parent 26fb19e7a8
commit e5a2116958
1 changed files with 69 additions and 61 deletions

View File

@ -4118,8 +4118,22 @@ void drawFlashes() {
for(int k=0; k<isize(flashes); k++) {
bool kill = true;
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;
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
}
EX bool allowIncreasedSight() {
if(cheater || autocheat) return true;