Skip to content

Commit

Permalink
Fix OpenRCT2#5249: No collision detection when building ride entrance…
Browse files Browse the repository at this point in the history
… at heights > 85.5m
  • Loading branch information
Gymnasiast committed Dec 29, 2019
1 parent fa4ed37 commit f9820db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions distribution/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Feature: [#10305] Add two shortcuts for increasing and decreasing the scaling factor.
- Feature: [#10189] Make Track Designs work in multiplayer.
- Change: [#1164] Use available translations for shortcut key bindings.
- Fix: [#5249] No collision detection when building ride entrance at heights > 85.5m.
- Fix: [#10228] Can't import RCT1 Deluxe from Steam.
- Fix: [#10325] Crash when banners have no text.
- Fix: [#10420] Money effect causing false positive desync.
Expand Down
2 changes: 1 addition & 1 deletion src/openrct2/actions/RideEntranceExitPlaceAction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ DEFINE_GAME_ACTION(RideEntranceExitPlaceAction, GAME_COMMAND_PLACE_RIDE_ENTRANCE
return MakeResult(GA_ERROR::NOT_OWNED, errorTitle);
}

int8_t clear_z = (z / 8) + (_isExit ? 5 : 7);
auto clear_z = (z / 8) + (_isExit ? 5 : 7);
auto cost = MONEY32_UNDEFINED;
if (!map_can_construct_with_clear_at(
_loc.x, _loc.y, z / 8, clear_z, &map_place_non_scenery_clear_func, { 0b1111, 0 }, GetFlags(), &cost,
Expand Down

0 comments on commit f9820db

Please sign in to comment.