Fix spectating after disconnection of spectated player
Before if you watched player from the first spectating position (SM_FOLLOW1ST), and that player disconnected, then you switched automatically to another player, but also to second spectating position (SM_FOLLOW3RD), instead of stay in SM_FOLLOW1ST - this commit fixes that.
This commit is contained in:
+2
-2
@@ -462,13 +462,13 @@ public:
|
||||
extern void zapplayerflags(playerent *owner);
|
||||
extern void cleanplayervotes(playerent *owner);
|
||||
extern physent *camera1;
|
||||
extern void togglespect();
|
||||
extern void spectatemode(int mode);
|
||||
removebounceents(this);
|
||||
audiomgr.detachsounds(this);
|
||||
removedynlights(this);
|
||||
zapplayerflags(this);
|
||||
cleanplayervotes(this);
|
||||
if(this==camera1) togglespect();
|
||||
if(this==camera1) spectatemode(SM_FOLLOW1ST);
|
||||
}
|
||||
|
||||
void damageroll(float damage)
|
||||
|
||||
Reference in New Issue
Block a user