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
This commit is contained in:
ac_stef
2008-10-20 10:47:04 +00:00
parent 6d041c50b6
commit 6c0fe1a41e
+3 -1
View File
@@ -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<playerent *> available;