mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #17980: Path mess and desync when hovering track design
This commit is contained in:
parent
53877c244c
commit
7af999e2dd
|
@ -62,7 +62,8 @@
|
|||
- Fix: [#17905] The chain button in the map window is enabled for rectangular maps when (re)opened.
|
||||
- Fix: [#17931] The in-game command ‘count_objects’ crashes the game.
|
||||
- Fix: [#17865] With difficult guest generation, tested but unopened rides still contribute to the guest cap.
|
||||
- Fix: [#17866] [Plugin] Wrong Soft Guest Cap at start of new game
|
||||
- Fix: [#17866] [Plugin] Wrong Soft Guest Cap at start of new game.
|
||||
- Fix: [#17980] Queue lines of track designs mess up existing queue lines if dragged through them.
|
||||
- Fix: [#17959] Areas marked for dirty drawing are too large.
|
||||
- Fix: [#17963] Some marketing campaigns can’t be started after Finances window tab has been on Research.
|
||||
- Fix: [#17966] Reversed steel trains do not properly import from S4.
|
||||
|
|
|
@ -1257,8 +1257,11 @@ static GameActions::Result TrackDesignPlaceSceneryElement(
|
|||
return GameActions::Result();
|
||||
}
|
||||
|
||||
footpath_queue_chain_reset();
|
||||
footpath_remove_edges_at(mapCoord, reinterpret_cast<TileElement*>(pathElement));
|
||||
if (tds.PlaceOperation == PTD_OPERATION_PLACE)
|
||||
{
|
||||
footpath_queue_chain_reset();
|
||||
footpath_remove_edges_at(mapCoord, reinterpret_cast<TileElement*>(pathElement));
|
||||
}
|
||||
|
||||
flags = GAME_COMMAND_FLAG_APPLY;
|
||||
if (tds.PlaceOperation == PTD_OPERATION_PLACE_TRACK_PREVIEW)
|
||||
|
@ -1274,8 +1277,13 @@ static GameActions::Result TrackDesignPlaceSceneryElement(
|
|||
{
|
||||
flags |= GAME_COMMAND_FLAG_REPLAY;
|
||||
}
|
||||
footpath_connect_edges(mapCoord, reinterpret_cast<TileElement*>(pathElement), flags);
|
||||
footpath_update_queue_chains();
|
||||
|
||||
if (tds.PlaceOperation == PTD_OPERATION_PLACE)
|
||||
{
|
||||
footpath_connect_edges(mapCoord, reinterpret_cast<TileElement*>(pathElement), flags);
|
||||
footpath_update_queue_chains();
|
||||
}
|
||||
|
||||
return GameActions::Result();
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue