From 6c0fe1a41e76e1ad90e57f5447171466169ffc45 Mon Sep 17 00:00:00 2001 From: ac_stef Date: Mon, 20 Oct 2008 10:47:04 +0000 Subject: [PATCH] spectate dead players while demo playback git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3161 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clientgame.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index 363f8b4b..2d1c7651 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -1030,12 +1030,14 @@ void refreshsopmenu(void *menu, bool init) } } +extern bool watchingdemo; + playerent *updatefollowplayer(int shiftdirection) { if(!shiftdirection) { playerent *f = players.inrange(player1->followplayercn) ? players[player1->followplayercn] : NULL; - if(f && !f->isspectating()) return f; + if(f && (watchingdemo || !f->isspectating())) return f; } vector available;