2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-28 15:45:46 +03:00

SV_RecursiveHullCheck: fix typo

DELTA_TestDelta: reverse engineering mistake.
This commit is contained in:
s1lent 2017-05-04 04:28:06 +07:00
parent f48ddcfadd
commit 1f355d6a5b
2 changed files with 6 additions and 6 deletions

View File

@ -462,12 +462,12 @@ int DELTA_TestDelta(unsigned char *from, unsigned char *to, delta_t *pFields)
st2 = (char*)&to[pTest->fieldOffset];
if (!(!*st1 && !*st2 || *st1 && *st2 && !Q_stricmp(st1, st2))) // Not sure why it is case insensitive, but it looks so
{
#ifdef REHLDS_FIXES
#ifndef REHLDS_FIXES
pTest->flags |= FDT_MARK;
#endif // REHLDS_FIXES
different = TRUE;
length = Q_strlen(st2) * 8;
#else // REHLDS_FIXES
length = Q_strlen(st2);
#endif // REHLDS_FIXES
}
break;
default:

View File

@ -854,7 +854,7 @@ qboolean SV_RecursiveHullCheck(hull_t *hull, int num, float p1f, float p2f, cons
if (midf < 0.0f)
break;
frac = pdif * midf + p1f;
mid[0] = (p2[0] - p1[1]) * midf + p1[0];
mid[0] = (p2[0] - p1[0]) * midf + p1[0];
mid[1] = (p2[1] - p1[1]) * midf + p1[1];
mid[2] = (p2[2] - p1[2]) * midf + p1[2];
}
@ -1008,7 +1008,7 @@ qboolean SV_RecursiveHullCheck(hull_t *hull, int num, float p1f, float p2f, cons
if (midf < 0.0f)
break;
frac = pdif * midf + p1f;
mid[0] = (p2[0] - p1[1]) * midf + p1[0];
mid[0] = (p2[0] - p1[0]) * midf + p1[0];
mid[1] = (p2[1] - p1[1]) * midf + p1[1];
mid[2] = (p2[2] - p1[2]) * midf + p1[2];
}