mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-12 10:20:32 +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++) {
|
for(int k=0; k<size(flashes); k++) {
|
||||||
flashdata& f = flashes[k];
|
flashdata& f = flashes[k];
|
||||||
transmatrix V;
|
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;
|
int tim = ticks - f.t;
|
||||||
|
|
||||||
bool kill = tim > f.size;
|
bool kill = tim > f.size;
|
||||||
|
Loading…
Reference in New Issue
Block a user