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