1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +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

@@ -69,9 +69,9 @@ bool object_entry_is_empty(const rct_object_entry* entry)
return false;
}
uint8_t object_entry_get_source_game_legacy(const rct_object_entry* objectEntry)
ObjectSourceGame object_entry_get_source_game_legacy(const rct_object_entry* objectEntry)
{
return (objectEntry->flags & 0xF0) >> 4;
return static_cast<ObjectSourceGame>((objectEntry->flags & 0xF0) >> 4);
}
/**