diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-09 15:35:52 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-09 15:35:52 +0100 |
commit | b32301592fc6ae44b3a201b8d1569e70ce045b45 (patch) | |
tree | a4402d2442ed2f3efe01ea8b8ce28885d0f41aea /src/core/Cam.cpp | |
parent | fix (diff) | |
parent | Change window name (diff) | |
download | re3-b32301592fc6ae44b3a201b8d1569e70ce045b45.tar re3-b32301592fc6ae44b3a201b8d1569e70ce045b45.tar.gz re3-b32301592fc6ae44b3a201b8d1569e70ce045b45.tar.bz2 re3-b32301592fc6ae44b3a201b8d1569e70ce045b45.tar.lz re3-b32301592fc6ae44b3a201b8d1569e70ce045b45.tar.xz re3-b32301592fc6ae44b3a201b8d1569e70ce045b45.tar.zst re3-b32301592fc6ae44b3a201b8d1569e70ce045b45.zip |
Diffstat (limited to 'src/core/Cam.cpp')
-rw-r--r-- | src/core/Cam.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp index d4188299..731537ef 100644 --- a/src/core/Cam.cpp +++ b/src/core/Cam.cpp @@ -3947,11 +3947,11 @@ CCam::Process_Debug(const CVector&, float, float, float) } // stay inside sectors - while(CWorld::GetSectorX(Source.x) > 75.0f) + while(CWorld::GetSectorX(Source.x) > NUMSECTORS_X-5.0f) Source.x -= 1.0f; while(CWorld::GetSectorX(Source.x) < 5.0f) Source.x += 1.0f; - while(CWorld::GetSectorY(Source.y) > 75.0f) + while(CWorld::GetSectorY(Source.y) > NUMSECTORS_X-5.0f) Source.y -= 1.0f; while(CWorld::GetSectorY(Source.y) < 5.0f) Source.y += 1.0f; @@ -4018,11 +4018,11 @@ CCam::Process_Debug(const CVector&, float, float, float) } // stay inside sectors - while(CWorld::GetSectorX(Source.x) > 75.0f) + while(CWorld::GetSectorX(Source.x) > NUMSECTORS_X-5.0f) Source.x -= 1.0f; while(CWorld::GetSectorX(Source.x) < 5.0f) Source.x += 1.0f; - while(CWorld::GetSectorY(Source.y) > 75.0f) + while(CWorld::GetSectorY(Source.y) > NUMSECTORS_X-5.0f) Source.y -= 1.0f; while(CWorld::GetSectorY(Source.y) < 5.0f) Source.y += 1.0f; @@ -4099,11 +4099,11 @@ CCam::Process_Editor(const CVector&, float, float, float) } // stay inside sectors - while(CWorld::GetSectorX(Source.x) > 75.0f) + while(CWorld::GetSectorX(Source.x) > NUMSECTORS_X-5.0f) Source.x -= 1.0f; while(CWorld::GetSectorX(Source.x) < 5.0f) Source.x += 1.0f; - while(CWorld::GetSectorY(Source.y) > 75.0f) + while(CWorld::GetSectorY(Source.y) > NUMSECTORS_X-5.0f) Source.y -= 1.0f; while(CWorld::GetSectorY(Source.y) < 5.0f) Source.y += 1.0f; |