1
0
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:
Duncan Frost
2015-05-30 10:15:29 +01:00
parent 0954687973
commit 3bd3fccb57
8 changed files with 11 additions and 8 deletions

View File

@@ -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);

View File

@@ -1220,7 +1220,7 @@ void window_rotate_camera(rct_window *w)
window_invalidate(w);
sub_688956();
sub_69E9A7();
reset_all_sprite_quadrant_placements();
}
/**