Remove light when off-screen

This commit is contained in:
Jeroen D Stout committed 2016-06-04 16:22:21 +02:00
1 parent 12a0c87bfd
commit de4b79b419
1 file changed
+1 -1
+1 -1
View File
@@ -178,7 +178,7 @@ void lightfx_prepare_light_list()
(posOnScreenY < -128) ||
(posOnScreenX > _pixelInfo.width + 128) ||
(posOnScreenY > _pixelInfo.height + 128)) {
entry->lightIntensity = 0xFF;
entry->lightType = LIGHTFX_LIGHT_TYPE_NONE;
continue;
}