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

Moving lights correctly on-screen for zoom

This commit is contained in:
Jeroen D Stout
2016-06-04 16:23:23 +02:00
parent 956c796f4a
commit e299b4d7f7

View File

@@ -444,12 +444,14 @@ void lightfx_render_lights_to_frontbuffer()
lightlist_entry * entry = &_LightListFront[light];
uint32 inRectCentreX = entry->x;
uint32 inRectCentreY = entry->y;
sint32 inRectCentreX = entry->x;
sint32 inRectCentreY = entry->y;
if (entry->z != 0x7FFF) {
inRectCentreX -= _current_view_x_front;
inRectCentreY -= _current_view_y_front;
inRectCentreX >>= _current_view_zoom_front;
inRectCentreY >>= _current_view_zoom_front;
}
switch (entry->lightType) {