diff options
author | aap <aap@papnet.eu> | 2021-01-09 12:11:52 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-01-09 12:11:52 +0100 |
commit | 822f0bd40b637839c4d8832a791e3a12f102b198 (patch) | |
tree | 0cc670f25147b0e3dd6bf24c1148a28efc18d8da /src/core/Cam.cpp | |
parent | fix last commit, debugmenu options (diff) | |
download | re3-822f0bd40b637839c4d8832a791e3a12f102b198.tar re3-822f0bd40b637839c4d8832a791e3a12f102b198.tar.gz re3-822f0bd40b637839c4d8832a791e3a12f102b198.tar.bz2 re3-822f0bd40b637839c4d8832a791e3a12f102b198.tar.lz re3-822f0bd40b637839c4d8832a791e3a12f102b198.tar.xz re3-822f0bd40b637839c4d8832a791e3a12f102b198.tar.zst re3-822f0bd40b637839c4d8832a791e3a12f102b198.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 1d73a272..a11cd6a4 100644 --- a/src/core/Cam.cpp +++ b/src/core/Cam.cpp @@ -3829,11 +3829,11 @@ CCam::Process_Debug(const CVector&, float, float, float) } // stay inside sectors - while(CWorld::GetSectorX(Source.x) > 95.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) > 95.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; @@ -3900,11 +3900,11 @@ CCam::Process_Debug(const CVector&, float, float, float) } // stay inside sectors - while(CWorld::GetSectorX(Source.x) > 95.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) > 95.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; @@ -3981,11 +3981,11 @@ CCam::Process_Editor(const CVector&, float, float, float) } // stay inside sectors - while(CWorld::GetSectorX(Source.x) > 95.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) > 95.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; |