1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix truncation of coordinates (#16004)

This commit is contained in:
ζeh Matt
2021-11-26 23:26:52 -08:00
committed by GitHub
parent 28c821fea6
commit bcb527d331

View File

@@ -536,9 +536,9 @@ CoordsXYZ EntityBase::GetLocation() const
void EntityBase::SetLocation(const CoordsXYZ& newLocation)
{
x = static_cast<int16_t>(newLocation.x);
y = static_cast<int16_t>(newLocation.y);
z = static_cast<int16_t>(newLocation.z);
x = newLocation.x;
y = newLocation.y;
z = newLocation.z;
}
void EntitySetCoordinates(const CoordsXYZ& entityPos, EntityBase* entity)