mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-17 19:40:10 +00:00
drawFlashes no longer tries to draw a flash in a gmatrix-less position
This commit is contained in:
parent
78490e75a9
commit
f82c07e5a6
@ -4999,7 +4999,8 @@ void drawMarkers() {
|
|||||||
void drawFlashes() {
|
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 = gmatrix[f.where];
|
transmatrix V;
|
||||||
|
try { V = gmatrix.at(f.where); } catch(out_of_range) { continue; }
|
||||||
int tim = ticks - f.t;
|
int tim = ticks - f.t;
|
||||||
|
|
||||||
bool kill = tim > f.size;
|
bool kill = tim > f.size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user