From 1f7494200e67e381e31611cf8c798956381d8a59 Mon Sep 17 00:00:00 2001 From: lucasgautheron Date: Thu, 15 Jan 2015 10:11:57 +0100 Subject: [PATCH] postlightarea crash fix the crash could occur on specific maps such as ac_swamp amend: fixed the fix (thx BrutalSystem) --- source/src/worldlight.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/worldlight.cpp b/source/src/worldlight.cpp index ae420a60..63143248 100644 --- a/source/src/worldlight.cpp +++ b/source/src/worldlight.cpp @@ -206,7 +206,7 @@ void calclight() seedMT(keep); - block bb = { mapdims.x1 - 1, mapdims.y1 - 1, mapdims.x2 + 1, mapdims.y2 + 1 }; + block bb = { mapdims.x1 - 1, mapdims.y1 - 1, mapdims.xspan + 2, mapdims.yspan + 2 }; postlightarea(bb); setvar("fullbright", 0); lastcalclight = totalmillis;