forked from rosebudai/OpenRCT2-Web
Fix truncation of coordinates (#16004)
This commit is contained in:
1 parent
28c821fea6
commit
bcb527d331
1 file changed
+3
-3
@@ -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