mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-02 19:56:13 +01:00
Update entities xyz to int32_t
This commit is contained in:
@@ -1235,9 +1235,9 @@ void S6Exporter::ExportEntityCommonProperties(RCT12SpriteBase* dst, const Entity
|
||||
dst->sprite_height_negative = src->sprite_height_negative;
|
||||
dst->sprite_index = src->sprite_index;
|
||||
dst->flags = 0;
|
||||
dst->x = src->x;
|
||||
dst->y = src->y;
|
||||
dst->z = src->z;
|
||||
dst->x = static_cast<int16_t>(src->x);
|
||||
dst->y = static_cast<int16_t>(src->y);
|
||||
dst->z = static_cast<int16_t>(src->z);
|
||||
dst->sprite_width = src->sprite_width;
|
||||
dst->sprite_height_positive = src->sprite_height_positive;
|
||||
dst->sprite_left = src->SpriteRect.GetLeft();
|
||||
|
||||
@@ -26,9 +26,9 @@ struct EntityBase
|
||||
{
|
||||
EntityType Type;
|
||||
uint16_t sprite_index;
|
||||
int16_t x;
|
||||
int16_t y;
|
||||
int16_t z;
|
||||
int32_t x;
|
||||
int32_t y;
|
||||
int32_t z;
|
||||
// Width from centre of sprite to edge
|
||||
uint8_t sprite_width;
|
||||
// Height from centre of sprite to bottom
|
||||
|
||||
Reference in New Issue
Block a user