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

Culling based on viewport for zoom levels

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

View File

@@ -171,6 +171,9 @@ void lightfx_prepare_light_list()
sint32 posOnScreenX = entry->x - _current_view_x_front;
sint32 posOnScreenY = entry->y - _current_view_y_front;
posOnScreenX >>= _current_view_zoom_front;
posOnScreenY >>= _current_view_zoom_front;
if ((posOnScreenX < -128) ||
(posOnScreenY < -128) ||
(posOnScreenX > _pixelInfo.width + 128) ||