From b8e445606cae8d32aa876a926d6ca272bcb19780 Mon Sep 17 00:00:00 2001 From: rkr35 Date: Sun, 7 Mar 2021 16:26:36 -0500 Subject: [PATCH] Fix scorch mark outside world --- source/src/renderparticles.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/src/renderparticles.cpp b/source/src/renderparticles.cpp index 85fdbd23..111e91bd 100644 --- a/source/src/renderparticles.cpp +++ b/source/src/renderparticles.cpp @@ -647,6 +647,7 @@ VARP(scorchttl, 0, 10000, 30000); bool addscorchmark(vec &o, float radius) { if(!scorchttl || !scorch) return false; + if(OUTBORD((int)o.x, (int)o.y)) return false; sqr *s = S((int)o.x, (int)o.y); if(s->type!=SPACE || o.z-s->floor>radius) return false; newparticle(vec(o.x, o.y, s->floor+0.02f), vec(0, 0, 1), scorchttl, 9);