diff options
Diffstat (limited to 'src/doom')
-rw-r--r-- | src/doom/d_net.c | 18 | ||||
-rw-r--r-- | src/doom/g_game.c | 15 |
2 files changed, 21 insertions, 12 deletions
diff --git a/src/doom/d_net.c b/src/doom/d_net.c index b307d97f..70359ebd 100644 --- a/src/doom/d_net.c +++ b/src/doom/d_net.c @@ -204,8 +204,8 @@ void NetUpdate (void) G_BuildTiccmd(&cmd); #ifdef FEATURE_MULTIPLAYER - - if (netgame && !demoplayback) + + if (net_client_connected) { NET_CL_SendTiccmd(&cmd, maketic); } @@ -460,6 +460,19 @@ void D_InitSinglePlayerGame(void) recvtic = 0; playeringame[0] = true; + + //! + // @category net + // + // Start the game playing as though in a netgame with a single + // player. This can also be used to play back single player netgame + // demos. + // + + if (M_CheckParm("-solo-net") > 0) + { + netgame = true; + } } boolean D_InitNetGame(net_connect_data_t *connect_data, @@ -468,6 +481,7 @@ boolean D_InitNetGame(net_connect_data_t *connect_data, net_addr_t *addr = NULL; int i; + #ifdef FEATURE_MULTIPLAYER //! diff --git a/src/doom/g_game.c b/src/doom/g_game.c index 0aaf8ee7..5d30899d 100644 --- a/src/doom/g_game.c +++ b/src/doom/g_game.c @@ -2145,16 +2145,11 @@ void G_DoPlayDemo (void) for (i=0 ; i<MAXPLAYERS ; i++) playeringame[i] = *demo_p++; - //! - // @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; + if (playeringame[1] || M_CheckParm("-solo-net") > 0 + || M_CheckParm("-netdemo") > 0) + { + netgame = true; + netdemo = true; } // don't spend a lot of time in loadlevel |