1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +01:00

Close #12432: Refactor STAFF_MODE to use strong enum (#12752)

* Refactor STAFF_MODE to use strong enum

Closes #12432

* Change type of gStaffModes to StaffMode
This commit is contained in:
Simon Ellmann
2020-09-02 17:48:40 +02:00
committed by GitHub
parent ae81ed63cc
commit 5f3fe62f83
9 changed files with 25 additions and 21 deletions

View File

@@ -1232,7 +1232,7 @@ static int32_t cc_show_limits(InteractiveConsole& console, [[maybe_unused]] cons
int32_t staffCount = 0;
for (int32_t i = 0; i < STAFF_MAX_COUNT; ++i)
{
if (gStaffModes[i] & 1)
if (gStaffModes[i] != StaffMode::None)
{
staffCount++;
}