From 1f355d6a5b0e5f9db7859f5a1831e87044760f27 Mon Sep 17 00:00:00 2001 From: s1lent Date: Thu, 4 May 2017 04:28:06 +0700 Subject: [PATCH] SV_RecursiveHullCheck: fix typo DELTA_TestDelta: reverse engineering mistake. --- rehlds/engine/delta.cpp | 8 ++++---- rehlds/engine/world.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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]; }