Reset observers' m_flNextFollowTime before trying to find next target if previous target disconnected (#584)

This commit is contained in:
Juice 2020-11-28 03:32:52 +03:00 committed by GitHub
parent 7721348199
commit 5e24376237
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}