mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 07:05:38 +03:00
Reset observers' m_flNextFollowTime before trying to find next target if previous target disconnected (#584)
This commit is contained in:
parent
7721348199
commit
5e24376237
@ -3580,6 +3580,9 @@ void CHalfLifeMultiplay::ClientDisconnected(edict_t *pClient)
|
|||||||
int iMode = pObserver->pev->iuser1;
|
int iMode = pObserver->pev->iuser1;
|
||||||
|
|
||||||
pObserver->pev->iuser1 = OBS_NONE;
|
pObserver->pev->iuser1 = OBS_NONE;
|
||||||
|
#ifdef REGAMEDLL_FIXES
|
||||||
|
pObserver->m_flNextFollowTime = 0.0;
|
||||||
|
#endif
|
||||||
pObserver->Observer_SetMode(iMode);
|
pObserver->Observer_SetMode(iMode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user