1
0
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:
ζeh Matt
2021-09-28 03:21:35 +03:00
parent cce3bb1845
commit 3a5452f0c9
2 changed files with 6 additions and 6 deletions

View File

@@ -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();

View File

@@ -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