Fix truncation of coordinates (#16004)

This commit is contained in:
ζeh Matt authored and GitHub committed 2021-11-27 07:26:52 +00:00
1 parent 28c821fea6
commit bcb527d331
1 file changed
+3 -3
+3 -3
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)