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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user