mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 22:13:07 +01:00
Ensure the spatial index invalidates when moving the entity position
This commit is contained in:
@@ -20,18 +20,6 @@ template<> bool EntityBase::Is<EntityBase>() const
|
||||
return true;
|
||||
}
|
||||
|
||||
CoordsXYZ EntityBase::GetLocation() const
|
||||
{
|
||||
return { x, y, z };
|
||||
}
|
||||
|
||||
void EntityBase::SetLocation(const CoordsXYZ& newLocation)
|
||||
{
|
||||
x = newLocation.x;
|
||||
y = newLocation.y;
|
||||
z = newLocation.z;
|
||||
}
|
||||
|
||||
void EntityBase::Invalidate()
|
||||
{
|
||||
if (x == kLocationNull)
|
||||
|
||||
Reference in New Issue
Block a user