mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-21 03:01:36 +00:00
- fixed bad sector validation in DoUpdateSector.
This commit is contained in:
parent
738c133d05
commit
fddb4d2330
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ void DoUpdateSector(double x, double y, double z, int* sectnum, double maxDistan
|
|||
{
|
||||
double maxDistSq = maxDistance * maxDistance;
|
||||
|
||||
if (sectnum)
|
||||
if (validSectorIndex(sectnum))
|
||||
{
|
||||
if (checker(x, y, z, §or[*sectnum]))
|
||||
return;
|
||||
|
@ -66,8 +66,8 @@ void DoUpdateSector(double x, double y, double z, int* sectnum, double maxDistan
|
|||
}
|
||||
iter++;
|
||||
}
|
||||
*sectnum = -1;
|
||||
}
|
||||
*sectnum = -1;
|
||||
}
|
||||
|
||||
template<class Inside>
|
||||
|
|
Loading…
Reference in a new issue