1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 16:54:52 +01:00

Remove uses of GET_PEEP macro and replace with GetEntity (#12467)

* Use TryGetEntity and GetEntity instead of macro

* Use GetEntity for ui guest window

* Remove final GET_PEEP macro uses

* Fix remaining issues
This commit is contained in:
Duncan
2020-07-26 17:42:02 +01:00
committed by GitHub
parent ba10b84789
commit 8a378ad236
26 changed files with 501 additions and 273 deletions

View File

@@ -622,7 +622,7 @@ static void window_title_command_editor_tool_down(
if (info.sprite->generic.Is<Peep>())
{
validSprite = true;
auto peep = GET_PEEP(spriteIndex);
auto peep = GetEntity<Peep>(spriteIndex);
if (peep != nullptr)
{
uint8_t formatArgs[32]{};