mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 04:53:12 +01:00
Fix rotation disapearing sprites
This was caused by the sprite quadrant assignment not being reset when a new rotation was assigned
This commit is contained in:
@@ -396,6 +396,8 @@ int cmdline_for_screenshot(const char **argv, int argc)
|
||||
viewport.zoom = customZoom;
|
||||
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_ROTATION, uint8) = customRotation;
|
||||
|
||||
reset_all_sprite_quadrant_placements();
|
||||
} else {
|
||||
viewport.view_x = RCT2_GLOBAL(RCT2_ADDRESS_SAVED_VIEW_X, sint16) - (viewport.view_width / 2);
|
||||
viewport.view_y = RCT2_GLOBAL(RCT2_ADDRESS_SAVED_VIEW_Y, sint16) - (viewport.view_height / 2);
|
||||
|
||||
@@ -1220,7 +1220,7 @@ void window_rotate_camera(rct_window *w)
|
||||
window_invalidate(w);
|
||||
|
||||
sub_688956();
|
||||
sub_69E9A7();
|
||||
reset_all_sprite_quadrant_placements();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user