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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user