diff options
author | Simon Howard | 2006-09-30 10:52:25 +0000 |
---|---|---|
committer | Simon Howard | 2006-09-30 10:52:25 +0000 |
commit | 433a6e9e411fb188991d5d78df4b04dd81b2baac (patch) | |
tree | 3d0abff24ba6f3d8bdb9d753276882c0d21b95af | |
parent | ad0d0d1ccbcba4ff66dc3843d78dd1de90cd1fa3 (diff) | |
download | chocolate-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.c | 38 |
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", |