diff options
author | Simon Howard | 2006-05-05 19:49:34 +0000 |
---|---|---|
committer | Simon Howard | 2006-05-05 19:49:34 +0000 |
commit | 319f427c9369bfe1c5a6cad636ecd91934c3024d (patch) | |
tree | 070bef41921a855a7e39d380e87d8c38978e97a1 /src/p_spec.c | |
parent | cbd744280545a38e62ecc0290a1312b3aeff9ae0 (diff) | |
download | chocolate-doom-319f427c9369bfe1c5a6cad636ecd91934c3024d.tar.gz chocolate-doom-319f427c9369bfe1c5a6cad636ecd91934c3024d.tar.bz2 chocolate-doom-319f427c9369bfe1c5a6cad636ecd91934c3024d.zip |
Syncronise the -timer/-avg parameters across all clients to avoid desyncs.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 475
Diffstat (limited to 'src/p_spec.c')
-rw-r--r-- | src/p_spec.c | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/src/p_spec.c b/src/p_spec.c index 586d2ec2..6e5df166 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: p_spec.c 344 2006-01-25 17:38:40Z fraggle $ +// $Id: p_spec.c 475 2006-05-05 19:49:34Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -45,7 +45,7 @@ //----------------------------------------------------------------------------- static const char -rcsid[] = "$Id: p_spec.c 344 2006-01-25 17:38:40Z fraggle $"; +rcsid[] = "$Id: p_spec.c 475 2006-05-05 19:49:34Z fraggle $"; #include <stdlib.h> @@ -1271,23 +1271,16 @@ void P_SpawnSpecials (void) episode = 2; - // See if -TIMER needs to be used. - levelTimer = false; - - i = M_CheckParm("-avg"); - if (i && deathmatch) + // See if -TIMER was specified. + + if (timelimit > 0) { - levelTimer = true; - levelTimeCount = 20 * 60 * 35; + levelTimer = true; + levelTimeCount = timelimit * 60 * 35; } - - i = M_CheckParm("-timer"); - if (i && deathmatch) + else { - int time; - time = atoi(myargv[i+1]) * 60 * 35; - levelTimer = true; - levelTimeCount = time; + levelTimer = false; } // Init special SECTORs. |