shithub: choc

Download patch

ref: 3e82d3d2f14bf12f077beb9603caba84d54b445d
parent: 75292c1548ba30ddfb906f878eedf7828097dcd1
author: Simon Howard <fraggle@gmail.com>
date: Sun Jul 8 13:52:45 EDT 2007

Add -netdemo for playing back netgame demos that only have a single
player.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 934

--- a/src/g_game.c
+++ b/src/g_game.c
@@ -1957,7 +1957,14 @@
 	
     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;