mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-27 22:42:09 +00:00
Fix game getting stuck in a do-while loop when "team follow1" or "team follow2" client sends a follownext or followprev command.
This commit is contained in:
parent
c65142179f
commit
02f3664b2e
1 changed files with 10 additions and 0 deletions
|
@ -749,6 +749,16 @@ void Cmd_FollowCycle_f( gentity_t *ent, int dir ) {
|
|||
G_Error( "Cmd_FollowCycle_f: bad dir %i", dir );
|
||||
}
|
||||
|
||||
// if dedicated follow client, just switch between the two auto clients
|
||||
if (ent->client->sess.spectatorClient < 0) {
|
||||
if (ent->client->sess.spectatorClient == -1) {
|
||||
ent->client->sess.spectatorClient = -2;
|
||||
} else if (ent->client->sess.spectatorClient == -2) {
|
||||
ent->client->sess.spectatorClient = -1;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
clientnum = ent->client->sess.spectatorClient;
|
||||
original = clientnum;
|
||||
do {
|
||||
|
|
Loading…
Reference in a new issue