mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 08:18:59 +00:00
cam sector fix
This commit is contained in:
parent
02f6ed7da3
commit
822f0bd40b
1 changed files with 6 additions and 6 deletions
|
@ -3829,11 +3829,11 @@ CCam::Process_Debug(const CVector&, float, float, float)
|
||||||
}
|
}
|
||||||
|
|
||||||
// stay inside sectors
|
// stay inside sectors
|
||||||
while(CWorld::GetSectorX(Source.x) > 95.0f)
|
while(CWorld::GetSectorX(Source.x) > NUMSECTORS_X-5.0f)
|
||||||
Source.x -= 1.0f;
|
Source.x -= 1.0f;
|
||||||
while(CWorld::GetSectorX(Source.x) < 5.0f)
|
while(CWorld::GetSectorX(Source.x) < 5.0f)
|
||||||
Source.x += 1.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;
|
Source.y -= 1.0f;
|
||||||
while(CWorld::GetSectorY(Source.y) < 5.0f)
|
while(CWorld::GetSectorY(Source.y) < 5.0f)
|
||||||
Source.y += 1.0f;
|
Source.y += 1.0f;
|
||||||
|
@ -3900,11 +3900,11 @@ CCam::Process_Debug(const CVector&, float, float, float)
|
||||||
}
|
}
|
||||||
|
|
||||||
// stay inside sectors
|
// stay inside sectors
|
||||||
while(CWorld::GetSectorX(Source.x) > 95.0f)
|
while(CWorld::GetSectorX(Source.x) > NUMSECTORS_X-5.0f)
|
||||||
Source.x -= 1.0f;
|
Source.x -= 1.0f;
|
||||||
while(CWorld::GetSectorX(Source.x) < 5.0f)
|
while(CWorld::GetSectorX(Source.x) < 5.0f)
|
||||||
Source.x += 1.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;
|
Source.y -= 1.0f;
|
||||||
while(CWorld::GetSectorY(Source.y) < 5.0f)
|
while(CWorld::GetSectorY(Source.y) < 5.0f)
|
||||||
Source.y += 1.0f;
|
Source.y += 1.0f;
|
||||||
|
@ -3981,11 +3981,11 @@ CCam::Process_Editor(const CVector&, float, float, float)
|
||||||
}
|
}
|
||||||
|
|
||||||
// stay inside sectors
|
// stay inside sectors
|
||||||
while(CWorld::GetSectorX(Source.x) > 95.0f)
|
while(CWorld::GetSectorX(Source.x) > NUMSECTORS_X-5.0f)
|
||||||
Source.x -= 1.0f;
|
Source.x -= 1.0f;
|
||||||
while(CWorld::GetSectorX(Source.x) < 5.0f)
|
while(CWorld::GetSectorX(Source.x) < 5.0f)
|
||||||
Source.x += 1.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;
|
Source.y -= 1.0f;
|
||||||
while(CWorld::GetSectorY(Source.y) < 5.0f)
|
while(CWorld::GetSectorY(Source.y) < 5.0f)
|
||||||
Source.y += 1.0f;
|
Source.y += 1.0f;
|
||||||
|
|
Loading…
Reference in a new issue