mirror of
https://github.com/halpz/re3.git
synced 2025-06-29 11:46:35 +00:00
CPopulation done, CCopPed and fixes
This commit is contained in:
@ -3002,9 +3002,9 @@ CAutomobile::RcbanditCheckHitWheels(void)
|
||||
if(xmin < 0) xmin = 0;
|
||||
xmax = CWorld::GetSectorIndexX(GetPosition().x + 2.0f);
|
||||
if(xmax > NUMSECTORS_X-1) xmax = NUMSECTORS_X-1;
|
||||
ymin = CWorld::GetSectorIndexX(GetPosition().y - 2.0f);
|
||||
ymin = CWorld::GetSectorIndexY(GetPosition().y - 2.0f);
|
||||
if(ymin < 0) ymin = 0;
|
||||
ymax = CWorld::GetSectorIndexX(GetPosition().y + 2.0f);
|
||||
ymax = CWorld::GetSectorIndexY(GetPosition().y + 2.0f);
|
||||
if(ymax > NUMSECTORS_Y-1) ymax = NUMSECTORS_X-1;
|
||||
|
||||
CWorld::AdvanceCurrentScanCode();
|
||||
|
@ -261,9 +261,9 @@ CTrain::ProcessControl(void)
|
||||
if(xmin < 0) xmin = 0;
|
||||
xmax = CWorld::GetSectorIndexX(front.x + 3.0f);
|
||||
if(xmax > NUMSECTORS_X-1) xmax = NUMSECTORS_X-1;
|
||||
ymin = CWorld::GetSectorIndexX(front.y - 3.0f);
|
||||
ymin = CWorld::GetSectorIndexY(front.y - 3.0f);
|
||||
if(ymin < 0) ymin = 0;
|
||||
ymax = CWorld::GetSectorIndexX(front.y + 3.0f);
|
||||
ymax = CWorld::GetSectorIndexY(front.y + 3.0f);
|
||||
if(ymax > NUMSECTORS_Y-1) ymax = NUMSECTORS_X-1;
|
||||
|
||||
CWorld::AdvanceCurrentScanCode();
|
||||
|
Reference in New Issue
Block a user