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:
parent
f48ddcfadd
commit
1f355d6a5b
@ -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:
|
||||
|
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user