1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Close #12428: Refactor OBJECT_SOURCE_GAME to use strong enum

This commit is contained in:
Haven Kim
2020-10-17 13:27:02 -07:00
committed by GitHub
parent a9316869fc
commit 8a4df108ba
13 changed files with 71 additions and 71 deletions

View File

@@ -178,7 +178,7 @@ protected:
for (size_t i = 0; i < sourceLength; i++)
{
auto value = stream->ReadValue<uint8_t>();
item.Sources.push_back(value);
item.Sources.push_back(static_cast<ObjectSourceGame>(value));
}
auto authorsLength = stream->ReadValue<uint8_t>();
@@ -671,10 +671,10 @@ bool IsObjectCustom(const ObjectRepositoryItem* object)
switch (object->GetFirstSourceGame())
{
case OBJECT_SOURCE_RCT2:
case OBJECT_SOURCE_WACKY_WORLDS:
case OBJECT_SOURCE_TIME_TWISTER:
case OBJECT_SOURCE_OPENRCT2_OFFICIAL:
case ObjectSourceGame::RCT2:
case ObjectSourceGame::WackyWorlds:
case ObjectSourceGame::TimeTwister:
case ObjectSourceGame::OpenRCT2Official:
return false;
default:
return true;