Skip to content

Commit

Permalink
Reset observers' m_flNextFollowTime before trying to find next target…
Browse files Browse the repository at this point in the history
… if previous target disconnected (#584)
  • Loading branch information
etojuice authored Nov 28, 2020
1 parent 7721348 commit 5e24376
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions regamedll/dlls/multiplay_gamerules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 5e24376

Please sign in to comment.