diff --git a/contributors.md b/contributors.md index eec496cf28..a1a4b8bf29 100644 --- a/contributors.md +++ b/contributors.md @@ -59,6 +59,7 @@ Includes all git commit authors. Aliases are GitHub user names. * Lucas Riutzel (jackinloadup) * Youngjae Yu (YJSoft) * Chanwoong Kim (kexplo) +* Josué Acevedo (Wirlie) ## Toolchain * (Balletie) - OSX diff --git a/src/ride/track.c b/src/ride/track.c index 89f2c4a58b..4140d92667 100644 --- a/src/ride/track.c +++ b/src/ride/track.c @@ -4719,7 +4719,8 @@ static money32 track_place(int rideIndex, int type, int originX, int originY, in support_height = 10; } - cost += (support_height / 2) * RCT2_ADDRESS(0x0097DD7A, uint16)[ride->type * 2]; + cost += (((support_height / 2) * RCT2_ADDRESS(0x0097DD7A, uint16)[ride->type * 2]) / 2) * 10; + //6c56d3 if (!(flags & GAME_COMMAND_FLAG_APPLY)) @@ -4864,7 +4865,7 @@ static money32 track_place(int rideIndex, int type, int originX, int originY, in RCT2_ADDRESS(0x0099DA34, money32)[type]; price >>= 16; - price = ((cost + price) / 2) * 10; + price = cost + ((price / 2) * 10); if (RCT2_GLOBAL(RCT2_ADDRESS_PARK_FLAGS, uint32) & PARK_FLAGS_NO_MONEY) { return 0;