diff --git a/src/openrct2/rct2/S6Exporter.cpp b/src/openrct2/rct2/S6Exporter.cpp index f4ea1932d8..47ee85946f 100644 --- a/src/openrct2/rct2/S6Exporter.cpp +++ b/src/openrct2/rct2/S6Exporter.cpp @@ -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(src->x); + dst->y = static_cast(src->y); + dst->z = static_cast(src->z); dst->sprite_width = src->sprite_width; dst->sprite_height_positive = src->sprite_height_positive; dst->sprite_left = src->SpriteRect.GetLeft(); diff --git a/src/openrct2/world/EntityBase.h b/src/openrct2/world/EntityBase.h index 3824a59955..125193fef1 100644 --- a/src/openrct2/world/EntityBase.h +++ b/src/openrct2/world/EntityBase.h @@ -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