Skip to content

Commit

Permalink
Fix #5787: Opening an incomplete ride moves the viewport to unrelated…
Browse files Browse the repository at this point in the history
… place

Remove ghost elements for track before validating it.
  • Loading branch information
IntelOrca committed Jul 4, 2017
1 parent a558423 commit 705ad7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions distribution/changelog.txt
Expand Up @@ -118,6 +118,7 @@
- Fix: [#5096] Failure to open parks with out of bounds sprite coordinates.
- Fix: [#5114] Some entertainer costumes never select-able.
- Fix: [#5381] Game crashes in scenario editor when scenery or pathing is clicked on when no objects loaded.
- Fix: [#5787] Opening an incomplete ride moves the viewport to unrelated place.

0.0.5 (2016-12-27)
------------------------------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions src/openrct2/ride/ride.c
Expand Up @@ -5541,6 +5541,10 @@ void game_command_set_ride_status(sint32 *eax, sint32 *ebx, sint32 *ecx, sint32
if (constructionWindow != NULL) {
window_close(constructionWindow);
}
} else {
// #5787: We need to make sure ghost elements are removed before validating
// the track.
ride_construction_remove_ghosts();
}

if (targetStatus == RIDE_STATUS_TESTING) {
Expand Down

0 comments on commit 705ad7c

Please sign in to comment.