1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-20 12:20:01 +00:00

no more weird flashes

This commit is contained in:
Zeno Rogue 2018-01-20 17:52:59 +01:00
parent 1d2b20b015
commit 846df5d84f

View File

@ -5000,7 +5000,11 @@ void drawFlashes() {
for(int k=0; k<size(flashes); k++) {
flashdata& f = flashes[k];
transmatrix V;
try { V = gmatrix.at(f.where); } catch(out_of_range) { continue; }
try { V = gmatrix.at(f.where); } catch(out_of_range) {
f = flashes[size(flashes)-1];
flashes.pop_back(); k--;
continue;
}
int tim = ticks - f.t;
bool kill = tim > f.size;