attribute damage blend effects to spectated player

...and clear it in case a different player is followed

also: cleanup
This commit is contained in:
ac-stef
2017-05-12 19:07:38 +02:00
parent 33af150e23
commit 12925eaebc
5 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -388,7 +388,6 @@ void parsemessages(int cn, playerent *d, ucharbuf &p, bool demo = false)
{
static char text[MAXTRANS];
int type, joining = 0;
bool demoplayback = false;
while(p.remaining())
{
@@ -1385,6 +1384,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p, bool demo = false)
case SV_DEMOPLAYBACK:
{
bool demoplayback = false;
string demofile;
extern char *curdemofile;
if(demo && watchingdemo && demoprotocol == 1132)