From 79446c49acfeb8b97fc535268cea4d9343cbaadf Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 27 Nov 2010 15:36:43 +0000 Subject: Fix -timer / -avg options to work like Vanilla when playing demos. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2171 --- src/p_spec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/p_spec.c') diff --git a/src/p_spec.c b/src/p_spec.c index 37beb850..fa3ec335 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -1389,10 +1389,9 @@ void P_SpawnSpecials (void) if (W_CheckNumForName(DEH_String("texture2")) >= 0) episode = 2; - // See if -TIMER was specified. - if (timelimit > 0) + if (timelimit > 0 && deathmatch) { levelTimer = true; levelTimeCount = timelimit * 60 * TICRATE; @@ -1401,7 +1400,7 @@ void P_SpawnSpecials (void) { levelTimer = false; } - + // Init special SECTORs. sector = sectors; for (i=0 ; i