mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
no more weird flashes
This commit is contained in:
parent
1d2b20b015
commit
846df5d84f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user