diff --git a/rehlds/engine/delta.cpp b/rehlds/engine/delta.cpp index d092639..2df6d19 100644 --- a/rehlds/engine/delta.cpp +++ b/rehlds/engine/delta.cpp @@ -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: diff --git a/rehlds/engine/world.cpp b/rehlds/engine/world.cpp index 9b8fd32..6ea7ca2 100644 --- a/rehlds/engine/world.cpp +++ b/rehlds/engine/world.cpp @@ -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]; }