diff options
author | Simon Howard | 2006-09-29 21:38:21 +0000 |
---|---|---|
committer | Simon Howard | 2006-09-29 21:38:21 +0000 |
commit | ecdd879374fee32f48fe2551873cb4801e39711c (patch) | |
tree | 00762dbfbc9cf9b95b4d84fce57d88736e7805f5 | |
parent | 440dd9fc2affb98ddd334e118f3a17657965e7be (diff) | |
download | chocolate-doom-ecdd879374fee32f48fe2551873cb4801e39711c.tar.gz chocolate-doom-ecdd879374fee32f48fe2551873cb4801e39711c.tar.bz2 chocolate-doom-ecdd879374fee32f48fe2551873cb4801e39711c.zip |
Working -left and -right options!
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 681
-rw-r--r-- | src/d_net.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/d_net.c b/src/d_net.c index 76693b89..fd979d62 100644 --- a/src/d_net.c +++ b/src/d_net.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: d_net.c 680 2006-09-29 21:25:13Z fraggle $ +// $Id: d_net.c 681 2006-09-29 21:38:21Z 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 680 2006-09-29 21:25:13Z fraggle $"; +static const char rcsid[] = "$Id: d_net.c 681 2006-09-29 21:38:21Z fraggle $"; #include "doomfeatures.h" @@ -338,6 +338,18 @@ void D_CheckNetGame (void) 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 |