1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 16:54:52 +01:00

Remove light when off-screen

This commit is contained in:
Jeroen D Stout
2016-06-04 16:22:21 +02:00
parent 12a0c87bfd
commit de4b79b419

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;
}