shithub: choc

Download patch

ref: cb9ca4fc2637443d9ec38060d43b73a47649f452
parent: 49474b14d45c37b05e0ab3594c5cc905bcdb14e3
author: Simon Howard <[email protected]>
date: Mon Sep 25 16:47:11 EDT 2006

Don't disable screen melt entirely in testcontrols mode; just on startup.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 666

--- a/src/d_main.c
+++ b/src/d_main.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: d_main.c 662 2006-09-25 18:04:29Z fraggle $
+// $Id: d_main.c 666 2006-09-25 20:47:11Z fraggle $
 //
 // Copyright(C) 1993-1996 Id Software, Inc.
 // Copyright(C) 2005 Simon Howard
@@ -184,7 +184,7 @@
 //-----------------------------------------------------------------------------
 
 
-static const char rcsid[] = "$Id: d_main.c 662 2006-09-25 18:04:29Z fraggle $";
+static const char rcsid[] = "$Id: d_main.c 666 2006-09-25 20:47:11Z fraggle $";
 
 #define	BGCOLOR		7
 #define	FGCOLOR		8
@@ -530,7 +530,7 @@
 
 
     // normal update
-    if (!wipe || testcontrols)
+    if (!wipe)
     {
 	I_FinishUpdate ();              // page flip or blit buffer
 	return;
@@ -586,6 +586,11 @@
     R_ExecuteSetViewSize();
 
     D_StartGameLoop();
+
+    if (testcontrols)
+    {
+        wipegamestate = gamestate;
+    }
 
     while (1)
     {