shithub: choc

Download patch

ref: e03c3c5cb7ede6a03b9185f8c64cf10847098a69
parent: 06d7bc41da184a13f3104e46e3791c1118af2b34
author: Simon Howard <fraggle@gmail.com>
date: Sun Jan 22 19:12:25 EST 2006

Fix dehacked sky replacement

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

--- a/src/g_game.c
+++ b/src/g_game.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: g_game.c 324 2006-01-22 23:33:32Z fraggle $
+// $Id: g_game.c 332 2006-01-23 00:12:25Z fraggle $
 //
 // Copyright(C) 1993-1996 Id Software, Inc.
 // Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
 // 02111-1307, USA.
 //
 // $Log$
+// Revision 1.22  2006/01/23 00:12:25  fraggle
+// Fix dehacked sky replacement
+//
 // Revision 1.21  2006/01/22 23:33:32  fraggle
 // Allow changing the sky texture names via dehacked patches
 //
@@ -108,7 +111,7 @@
 
 
 static const char
-rcsid[] = "$Id: g_game.c 324 2006-01-22 23:33:32Z fraggle $";
+rcsid[] = "$Id: g_game.c 332 2006-01-23 00:12:25Z fraggle $";
 
 #include <string.h>
 #include <stdlib.h>
@@ -596,6 +599,8 @@
 	    break;
 	} 
     }
+
+    skytexturename = DEH_String(skytexturename);
 
     skytexture = R_TextureNumForName(skytexturename);