forked from rosebudai/OpenRCT2-Web
Close #12428: Refactor OBJECT_SOURCE_GAME to use strong enum
This commit is contained in:
1 parent
a9316869fc
commit
8a4df108ba
13 files changed
+71
-71
No files matched your search
@@ -52,8 +52,8 @@ void FootpathItemObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStre
|
||||
if (item != nullptr)
|
||||
{
|
||||
auto sourceGame = item->GetFirstSourceGame();
|
||||
if (sourceGame == OBJECT_SOURCE_WACKY_WORLDS || sourceGame == OBJECT_SOURCE_TIME_TWISTER
|
||||
|| sourceGame == OBJECT_SOURCE_CUSTOM)
|
||||
if (sourceGame == ObjectSourceGame::WackyWorlds || sourceGame == ObjectSourceGame::TimeTwister
|
||||
|| sourceGame == ObjectSourceGame::Custom)
|
||||
{
|
||||
auto scgPathX = Object::GetScgPathXHeader();
|
||||
SetPrimarySceneryGroup(&scgPathX);
|
||||
|
||||
Reference in new issue
Block a user