foxygit / doom Log in
commit 6be712fdde1757a824ecb620269551ab78902bf1
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Fri Jan 27 18:18:41 2006 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Fri Jan 27 18:18:41 2006 +0000

    dehacked replacements for switch texture names

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 346
---
 src/p_switch.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/p_switch.c b/src/p_switch.c
index 4f2a66bb..694c8eba 100644
--- a/src/p_switch.c
+++ b/src/p_switch.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*-
 //-----------------------------------------------------------------------------
 //
-// $Id: p_switch.c 91 2005-09-08 00:01:51Z fraggle $
+// $Id: p_switch.c 346 2006-01-27 18:18:41Z fraggle $
 //
 // Copyright(C) 1993-1996 Id Software, Inc.
 // Copyright(C) 2005 Simon Howard
@@ -23,6 +23,9 @@
 //
 //
 // $Log$
+// Revision 1.4  2006/01/27 18:18:41  fraggle
+// dehacked replacements for switch texture names
+//
 // Revision 1.3  2005/09/08 00:01:51  fraggle
 // Fix switches not changing in Episode 4
 //
@@ -39,7 +42,7 @@
 //-----------------------------------------------------------------------------

 static const char
-rcsid[] = "$Id: p_switch.c 91 2005-09-08 00:01:51Z fraggle $";
+rcsid[] = "$Id: p_switch.c 346 2006-01-27 18:18:41Z fraggle $";


 #include "i_system.h"
@@ -157,8 +160,8 @@ void P_InitSwitchList(void)

 	    value = R_TextureNumForName(alphSwitchList[i].name1);
 #endif
-	    switchlist[index++] = R_TextureNumForName(alphSwitchList[i].name1);
-	    switchlist[index++] = R_TextureNumForName(alphSwitchList[i].name2);
+	    switchlist[index++] = R_TextureNumForName(DEH_String(alphSwitchList[i].name1));
+	    switchlist[index++] = R_TextureNumForName(DEH_String(alphSwitchList[i].name2));
 	}
     }
 }