From 795fad52b67407dd5819c27fa5cc7a7256faa2e2 Mon Sep 17 00:00:00 2001 From: aurhat Date: Tue, 2 Dec 2014 21:00:27 +0100 Subject: [PATCH] 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. --- source/src/entity.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/entity.h b/source/src/entity.h index 1d75cd7d..e2ad32d5 100644 --- a/source/src/entity.h +++ b/source/src/entity.h @@ -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)