mirror of https://github.com/OpenRCT2/OpenRCT2.git
Use CoordsXY for map position
This commit is contained in:
parent
5ea09be0f8
commit
31e1a5dbcd
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue