1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Remove SPRITE_INDEX_NULL

This commit is contained in:
ζeh Matt
2022-02-17 18:44:50 +02:00
parent 0a67426799
commit 6af14a1e69
2 changed files with 1 additions and 3 deletions

View File

@@ -123,8 +123,6 @@ constexpr money16 ToMoney16(money64 value)
using EMPTY_ARGS_VOID_POINTER = void();
using rct_string_id = uint16_t;
constexpr uint16_t SPRITE_INDEX_NULL = 0xFFFF;
#define SafeFree(x) \
do \
{ \

View File

@@ -1103,7 +1103,7 @@ void PaintSurface(paint_session& session, uint8_t direction, uint16_t height, co
// Draw Staff Patrol Areas
// loc_660D02
if (gStaffDrawPatrolAreas != SPRITE_INDEX_NULL)
if (gStaffDrawPatrolAreas != EntityId::GetNull().ToUnderlying())
{
// TODO: Split is_staff_list into a new variable.
const int32_t staffIndex = gStaffDrawPatrolAreas;