summaryrefslogtreecommitdiff
path: root/src/g_game.c
diff options
context:
space:
mode:
authorSimon Howard2007-07-08 17:52:45 +0000
committerSimon Howard2007-07-08 17:52:45 +0000
commit3e82d3d2f14bf12f077beb9603caba84d54b445d (patch)
tree809ea40f9550722188ad68a03502f27a6031fd28 /src/g_game.c
parent75292c1548ba30ddfb906f878eedf7828097dcd1 (diff)
downloadchocolate-doom-3e82d3d2f14bf12f077beb9603caba84d54b445d.tar.gz
chocolate-doom-3e82d3d2f14bf12f077beb9603caba84d54b445d.tar.bz2
chocolate-doom-3e82d3d2f14bf12f077beb9603caba84d54b445d.zip
Add -netdemo for playing back netgame demos that only have a single
player. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 934
Diffstat (limited to 'src/g_game.c')
-rw-r--r--src/g_game.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/g_game.c b/src/g_game.c
index ffb93b8b..5a1f2891 100644
--- a/src/g_game.c
+++ b/src/g_game.c
@@ -1957,7 +1957,14 @@ void G_DoPlayDemo (void)
for (i=0 ; i<MAXPLAYERS ; i++)
playeringame[i] = *demo_p++;
- if (playeringame[1])
+
+ //!
+ // @category demo
+ //
+ // Play back a demo recorded in a netgame with a single player.
+ //
+
+ if (playeringame[1] || M_CheckParm("-netdemo") > 0)
{
netgame = true;
netdemo = true;