forked from rosebudai/OpenRCT2-Web
Remove light when off-screen
This commit is contained in:
1 parent
12a0c87bfd
commit
de4b79b419
1 file changed
+1
-1
@@ -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