From 55a39ccab15bfb8082149f9aec2d1273211c1605 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 15 Oct 2011 13:49:41 +0000 Subject: Fix desyncs when playing back multiplayer demos. Subversion-branch: /branches/v2-branch Subversion-revision: 2428 --- src/doom/d_net.c | 2 +- src/heretic/d_net.c | 2 +- src/hexen/d_net.c | 2 +- src/strife/d_net.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/doom/d_net.c b/src/doom/d_net.c index fc804ea3..5230668f 100644 --- a/src/doom/d_net.c +++ b/src/doom/d_net.c @@ -82,7 +82,7 @@ static void RunTic(ticcmd_t *cmds, boolean *ingame) for (i = 0; i < MAXPLAYERS; ++i) { - if (playeringame[i] && !ingame[i]) + if (!demoplayback && playeringame[i] && !ingame[i]) { PlayerQuitGame(&players[i]); } diff --git a/src/heretic/d_net.c b/src/heretic/d_net.c index 73e9d996..440944eb 100644 --- a/src/heretic/d_net.c +++ b/src/heretic/d_net.c @@ -83,7 +83,7 @@ static void RunTic(ticcmd_t *cmds, boolean *ingame) for (i = 0; i < MAXPLAYERS; ++i) { - if (playeringame[i] && !ingame[i]) + if (!demoplayback && playeringame[i] && !ingame[i]) { PlayerQuitGame(&players[i]); } diff --git a/src/hexen/d_net.c b/src/hexen/d_net.c index 73b517a9..301b521b 100644 --- a/src/hexen/d_net.c +++ b/src/hexen/d_net.c @@ -83,7 +83,7 @@ static void RunTic(ticcmd_t *cmds, boolean *ingame) for (i = 0; i < MAXPLAYERS; ++i) { - if (playeringame[i] && !ingame[i]) + if (!demoplayback && playeringame[i] && !ingame[i]) { PlayerQuitGame(&players[i]); } diff --git a/src/strife/d_net.c b/src/strife/d_net.c index 8062ee72..0f3b3d75 100644 --- a/src/strife/d_net.c +++ b/src/strife/d_net.c @@ -82,7 +82,7 @@ static void RunTic(ticcmd_t *cmds, boolean *ingame) for (i = 0; i < MAXPLAYERS; ++i) { - if (playeringame[i] && !ingame[i]) + if (!demoplayback && playeringame[i] && !ingame[i]) { PlayerQuitGame(&players[i]); } -- cgit v1.2.3