diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-02 17:02:45 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-02 17:02:45 +0200 |
commit | 7d067684ff4c69ecaf911ca23b478087f5655437 (patch) | |
tree | a47fbbaf7937616d80e799f3a9157d933c1f69c0 /src/core/ZoneCull.cpp | |
parent | changed saving compatibility (diff) | |
parent | A bit more audio cleanup (diff) | |
download | re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.gz re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.bz2 re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.lz re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.xz re3-7d067684ff4c69ecaf911ca23b478087f5655437.tar.zst re3-7d067684ff4c69ecaf911ca23b478087f5655437.zip |
Diffstat (limited to 'src/core/ZoneCull.cpp')
-rw-r--r-- | src/core/ZoneCull.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ZoneCull.cpp b/src/core/ZoneCull.cpp index 7a221f39..5ce18a4d 100644 --- a/src/core/ZoneCull.cpp +++ b/src/core/ZoneCull.cpp @@ -522,7 +522,7 @@ CCullZone::CalcDistToCullZoneSquared(float x, float y) bool CCullZone::IsEntityCloseEnoughToZone(CEntity *entity, bool checkLevel) { - CVector &pos = entity->GetPosition(); + const CVector &pos = entity->GetPosition(); CSimpleModelInfo *minfo = (CSimpleModelInfo*)CModelInfo::GetModelInfo(entity->GetModelIndex()); float distToZone = CalcDistToCullZone(pos.x, pos.y); |