mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 01:35:06 +01:00
Replace uint8's with EnumValue
Replace uint8's with EnumValue Replace uint8's with EnumValue Revertl arge change Revert large change Format
This commit is contained in:
committed by
Harry Hopkinson
parent
ef9840f29b
commit
56df39dcb4
@@ -142,7 +142,7 @@ enum class EntertainerCostume : uint8_t
|
||||
Count
|
||||
};
|
||||
|
||||
extern const StringId StaffCostumeNames[static_cast<uint8_t>(EntertainerCostume::Count)];
|
||||
extern const StringId StaffCostumeNames[EnumValue(EntertainerCostume::Count)];
|
||||
|
||||
colour_t StaffGetColour(StaffType staffType);
|
||||
GameActions::Result StaffSetColour(StaffType staffType, colour_t value);
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../util/Util.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace OpenRCT2::Entity::Yaw
|
||||
@@ -63,7 +65,7 @@ namespace OpenRCT2::Entity::Yaw
|
||||
|
||||
[[nodiscard]] constexpr int32_t YawToPrecision(int32_t yaw, SpritePrecision precision)
|
||||
{
|
||||
return yaw >> PrecisionOffset[static_cast<uint8_t>(precision)];
|
||||
return yaw >> PrecisionOffset[EnumValue(precision)];
|
||||
}
|
||||
|
||||
[[nodiscard]] constexpr uint8_t NumSpritesPrecision(SpritePrecision precision)
|
||||
|
||||
Reference in New Issue
Block a user