diff options
author | Simon Howard | 2007-07-08 17:52:45 +0000 |
---|---|---|
committer | Simon Howard | 2007-07-08 17:52:45 +0000 |
commit | 3e82d3d2f14bf12f077beb9603caba84d54b445d (patch) | |
tree | 809ea40f9550722188ad68a03502f27a6031fd28 /src/g_game.c | |
parent | 75292c1548ba30ddfb906f878eedf7828097dcd1 (diff) | |
download | chocolate-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.c | 9 |
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; |