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:
aurhat
2014-12-02 21:01:16 +01:00
parent fa483e1fcd
commit 795fad52b6
+2 -2
View File
@@ -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)