postlightarea crash fix

the crash could occur on specific maps such as ac_swamp

amend: fixed the fix (thx BrutalSystem)
This commit is contained in:
lucasgautheron
2015-01-18 20:27:12 +01:00
committed by ac-stef
parent 3d143a07bc
commit 1f7494200e
+1 -1
View File
@@ -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;