From 5e24376237344763f73633fae5e118924fa4179c Mon Sep 17 00:00:00 2001 From: Juice Date: Sat, 28 Nov 2020 03:32:52 +0300 Subject: [PATCH] Reset observers' m_flNextFollowTime before trying to find next target if previous target disconnected (#584) --- regamedll/dlls/multiplay_gamerules.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/regamedll/dlls/multiplay_gamerules.cpp b/regamedll/dlls/multiplay_gamerules.cpp index 558b10a5..0c21bf3e 100644 --- a/regamedll/dlls/multiplay_gamerules.cpp +++ b/regamedll/dlls/multiplay_gamerules.cpp @@ -3580,6 +3580,9 @@ void CHalfLifeMultiplay::ClientDisconnected(edict_t *pClient) int iMode = pObserver->pev->iuser1; pObserver->pev->iuser1 = OBS_NONE; +#ifdef REGAMEDLL_FIXES + pObserver->m_flNextFollowTime = 0.0; +#endif pObserver->Observer_SetMode(iMode); } }