summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2006-09-30 10:52:25 +0000
committerSimon Howard2006-09-30 10:52:25 +0000
commit433a6e9e411fb188991d5d78df4b04dd81b2baac (patch)
tree3d0abff24ba6f3d8bdb9d753276882c0d21b95af
parentad0d0d1ccbcba4ff66dc3843d78dd1de90cd1fa3 (diff)
downloadchocolate-doom-433a6e9e411fb188991d5d78df4b04dd81b2baac.tar.gz
chocolate-doom-433a6e9e411fb188991d5d78df4b04dd81b2baac.tar.bz2
chocolate-doom-433a6e9e411fb188991d5d78df4b04dd81b2baac.zip
Only allow drone mode when connecting.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 683
-rw-r--r--src/d_net.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/d_net.c b/src/d_net.c
index fd979d62..8f838559 100644
--- a/src/d_net.c
+++ b/src/d_net.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: d_net.c 681 2006-09-29 21:38:21Z fraggle $
+// $Id: d_net.c 683 2006-09-30 10:52:25Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -117,7 +117,7 @@
//-----------------------------------------------------------------------------
-static const char rcsid[] = "$Id: d_net.c 681 2006-09-29 21:38:21Z fraggle $";
+static const char rcsid[] = "$Id: d_net.c 683 2006-09-30 10:52:25Z fraggle $";
#include "doomfeatures.h"
@@ -333,23 +333,6 @@ void D_CheckNetGame (void)
nettics[i] = 0;
}
- if (M_CheckParm("-drone") > 0)
- {
- drone = true;
- }
-
- if (M_CheckParm("-left") > 0)
- {
- viewangleoffset = ANG90;
- drone = true;
- }
-
- if (M_CheckParm("-right") > 0)
- {
- viewangleoffset = ANG270;
- drone = true;
- }
-
playeringame[0] = true;
#ifdef FEATURE_MULTIPLAYER
@@ -396,6 +379,23 @@ void D_CheckNetGame (void)
if (addr != NULL)
{
+ if (M_CheckParm("-drone") > 0)
+ {
+ drone = true;
+ }
+
+ if (M_CheckParm("-left") > 0)
+ {
+ viewangleoffset = ANG90;
+ drone = true;
+ }
+
+ if (M_CheckParm("-right") > 0)
+ {
+ viewangleoffset = ANG270;
+ drone = true;
+ }
+
if (!NET_CL_Connect(addr))
{
I_Error("D_CheckNetGame: Failed to connect to %s\n",