mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-06 11:44:10 +00:00
implemented some higher level functions; added lots of stubs; switched top and bottom in CRect
This commit is contained in:
parent
d434c88606
commit
188aab4196
65 changed files with 791 additions and 169 deletions
|
@ -602,9 +602,9 @@ CRenderer::ScanWorld(void)
|
|||
if(x1 < 0) x1 = 0;
|
||||
x2 = CWorld::GetSectorIndexX(rect.right);
|
||||
if(x2 >= NUMSECTORS_X-1) x2 = NUMSECTORS_X-1;
|
||||
y1 = CWorld::GetSectorIndexY(rect.bottom);
|
||||
y1 = CWorld::GetSectorIndexY(rect.top);
|
||||
if(y1 < 0) y1 = 0;
|
||||
y2 = CWorld::GetSectorIndexY(rect.top);
|
||||
y2 = CWorld::GetSectorIndexY(rect.bottom);
|
||||
if(y2 >= NUMSECTORS_Y-1) y2 = NUMSECTORS_Y-1;
|
||||
for(; x1 <= x2; x1++)
|
||||
for(int y = y1; y <= y2; y++)
|
||||
|
@ -713,9 +713,9 @@ CRenderer::RequestObjectsInFrustum(void)
|
|||
if(x1 < 0) x1 = 0;
|
||||
x2 = CWorld::GetSectorIndexX(rect.right);
|
||||
if(x2 >= NUMSECTORS_X-1) x2 = NUMSECTORS_X-1;
|
||||
y1 = CWorld::GetSectorIndexY(rect.bottom);
|
||||
y1 = CWorld::GetSectorIndexY(rect.top);
|
||||
if(y1 < 0) y1 = 0;
|
||||
y2 = CWorld::GetSectorIndexY(rect.top);
|
||||
y2 = CWorld::GetSectorIndexY(rect.bottom);
|
||||
if(y2 >= NUMSECTORS_Y-1) y2 = NUMSECTORS_Y-1;
|
||||
for(; x1 <= x2; x1++)
|
||||
for(int y = y1; y <= y2; y++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue