mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 00:41:55 +00:00
- added a - sign to FindBestSector' default return.
This somehow get lost when the code was moved out of clipmove into a separate utility function.
This commit is contained in:
parent
9fc17a4bcf
commit
d5414da096
1 changed files with 1 additions and 1 deletions
|
@ -1238,7 +1238,7 @@ int pushmove(DVector3& pos, sectortype** pSect, double walldist, double ceildist
|
||||||
|
|
||||||
int FindBestSector(const DVector3& pos)
|
int FindBestSector(const DVector3& pos)
|
||||||
{
|
{
|
||||||
int bestnum = 1;
|
int bestnum = -1;
|
||||||
double bestdist = FLT_MAX;
|
double bestdist = FLT_MAX;
|
||||||
for (int secnum = (int)sector.Size() - 1; secnum >= 0; secnum--)
|
for (int secnum = (int)sector.Size() - 1; secnum >= 0; secnum--)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue