1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Make common price functions take const

This commit is contained in:
Gymnasiast
2020-05-11 19:22:25 +02:00
parent af1180a484
commit b46437ccde
2 changed files with 4 additions and 4 deletions

View File

@@ -76,7 +76,7 @@ const ShopItemDescriptor ShopItems[SHOP_ITEM_COUNT] = {
};
// clang-format on
money32 shop_item_get_common_price(Ride* forRide, int32_t shopItem)
money32 shop_item_get_common_price(Ride* forRide, const int32_t shopItem)
{
for (const auto& ride : GetRideManager())
{
@@ -105,7 +105,7 @@ money32 shop_item_get_common_price(Ride* forRide, int32_t shopItem)
return MONEY32_UNDEFINED;
}
bool shop_item_has_common_price(int32_t shopItem)
bool shop_item_has_common_price(const int32_t shopItem)
{
return (gSamePriceThroughoutPark & (1ULL << shopItem)) != 0;
}

View File

@@ -109,5 +109,5 @@ enum
extern const ShopItemDescriptor ShopItems[SHOP_ITEM_COUNT];
extern uint64_t gSamePriceThroughoutPark;
money32 shop_item_get_common_price(Ride* forRide, int32_t shopItem);
bool shop_item_has_common_price(int32_t shopItem);
money32 shop_item_get_common_price(Ride* forRide, const int32_t shopItem);
bool shop_item_has_common_price(const int32_t shopItem);