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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user