- 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:
Christoph Oelckers 2022-12-14 11:48:34 +01:00
parent 9fc17a4bcf
commit d5414da096

View file

@ -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--)
{ {