1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Use CoordsXY for map position

This commit is contained in:
ζeh Matt
2023-04-14 03:09:29 +03:00
parent 5ea09be0f8
commit 31e1a5dbcd
3 changed files with 3 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ uint8_t gCurrentRotation;
static uint32_t _currentImageType;
InteractionInfo::InteractionInfo(const PaintStruct* ps)
: Loc(ps->map_x, ps->map_y)
: Loc(ps->MapPos)
, Element(ps->Element)
, Entity(ps->Entity)
, SpriteType(ps->InteractionItem)

View File

@@ -189,8 +189,7 @@ static PaintStruct* CreateNormalPaintStruct(
ps->Attached = nullptr;
ps->Children = nullptr;
ps->InteractionItem = session.InteractionType;
ps->map_x = session.MapPosition.x;
ps->map_y = session.MapPosition.y;
ps->MapPos = session.MapPosition;
ps->Element = session.CurrentlyDrawnTileElement;
ps->Entity = session.CurrentlyDrawnEntity;

View File

@@ -57,8 +57,7 @@ struct PaintStruct
ImageId image_id;
int32_t x;
int32_t y;
int32_t map_x;
int32_t map_y;
CoordsXY MapPos;
uint16_t QuadrantIndex;
uint8_t SortFlags;
ViewportInteractionItem InteractionItem;