mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 10:21:57 -05:00
Fix #23368: Incorrect refund when deleting track >= 96m
This commit is contained in:
parent
49e5c89ff5
commit
bc66278686
2 changed files with 3 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
|||
- Change: [#23328] All RCT2 entertainer costumes are now available in legacy parks.
|
||||
- Fix: [#1479] Incorrect values provided by the in game console “get location” command.
|
||||
- Fix: [#21794] Lay-down coaster cars reverse on first frames of downwards corkscrew.
|
||||
- Fix: [#23368] Incorrect refund amount when deleting track pieces at or above 96m.
|
||||
- Fix: [#23508] Simultaneous virtual floors shown for ride and footpath.
|
||||
- Fix: [#23581] [Plugin] Food/drink items given to guests have no consumption duration set.
|
||||
- Fix: [#23591] “Install new track” button in Track Designs Manager is misaligned.
|
||||
|
|
|
@ -234,7 +234,7 @@ GameActions::Result TrackRemoveAction::Query() const
|
|||
GameActions::Status::Unknown, STR_RIDE_CONSTRUCTION_CANT_REMOVE_THIS, STR_ERR_SURFACE_ELEMENT_NOT_FOUND);
|
||||
}
|
||||
|
||||
int8_t _support_height = tileElement->BaseHeight - surfaceElement->BaseHeight;
|
||||
int16_t _support_height = tileElement->BaseHeight - surfaceElement->BaseHeight;
|
||||
if (_support_height < 0)
|
||||
{
|
||||
_support_height = 10;
|
||||
|
@ -410,7 +410,7 @@ GameActions::Result TrackRemoveAction::Execute() const
|
|||
GameActions::Status::Unknown, STR_RIDE_CONSTRUCTION_CANT_REMOVE_THIS, STR_ERR_SURFACE_ELEMENT_NOT_FOUND);
|
||||
}
|
||||
|
||||
int8_t _support_height = tileElement->BaseHeight - surfaceElement->BaseHeight;
|
||||
int16_t _support_height = tileElement->BaseHeight - surfaceElement->BaseHeight;
|
||||
if (_support_height < 0)
|
||||
{
|
||||
_support_height = 10;
|
||||
|
|
Loading…
Reference in a new issue