mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-25 15:54:31 +01:00
Remove type from SpriteBase (#13735)
* Move type field into sub structures * Use type for misc_type * Use type for l_type * Rename to SubType * Rename SpriteGeneric to MiscEntity * Rename generic to misc * Add extra nullptr checks for compilers that cant understand * Make review changes * Increment network version * Update replays
This commit is contained in:
@@ -657,10 +657,10 @@ static void window_title_command_editor_tool_down(
|
||||
}
|
||||
else if (litter != nullptr)
|
||||
{
|
||||
if (litter->type < std::size(litterNames))
|
||||
if (litter->SubType < std::size(litterNames))
|
||||
{
|
||||
validSprite = true;
|
||||
format_string(_command.SpriteName, USER_STRING_MAX_LENGTH, litterNames[litter->type], nullptr);
|
||||
format_string(_command.SpriteName, USER_STRING_MAX_LENGTH, litterNames[litter->SubType], nullptr);
|
||||
}
|
||||
}
|
||||
else if (balloon != nullptr)
|
||||
|
||||
Reference in New Issue
Block a user