Fix #13289: Litter and vomit sometimes not loading with RCT1 saves (#13322)

Issue was actually caused by loading RCT1 saves from certain rotations, and fixed by reseting sprite quadrants when loading. Wasn't an issue with RCT2 saves as litter screen coordinates are set directly from the save, rather than calculated based on rotation and sprite width/height.
This commit is contained in:
evilclownattack authored and GitHub committed 2020-10-31 11:32:32 +00:00
1 parent 4471bd8354
commit 3277153e87
2 files changed
+2

No files matched your search

+1
View File
@@ -571,6 +571,7 @@ void game_load_init()
GameActions::ClearQueue();
}
reset_sprite_spatial_index();
reset_all_sprite_quadrant_placements();
scenery_set_default_placement_configuration();
auto intent = Intent(INTENT_ACTION_REFRESH_NEW_RIDES);