From e66fffd3202fe22a2eefbb4a3cb6a73048890de5 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 22 Jan 2006 21:22:35 +0000 Subject: Dehacked string replacements for menu graphic lump names Subversion-branch: /trunk/chocolate-doom Subversion-revision: 322 --- src/m_menu.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'src/m_menu.c') diff --git a/src/m_menu.c b/src/m_menu.c index b801e46b..c61686c6 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: m_menu.c 311 2006-01-21 14:15:29Z fraggle $ +// $Id: m_menu.c 322 2006-01-22 21:22:35Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -22,6 +22,9 @@ // 02111-1307, USA. // // $Log$ +// Revision 1.13 2006/01/22 21:22:35 fraggle +// Dehacked string replacements for menu graphic lump names +// // Revision 1.12 2006/01/21 14:15:29 fraggle // Remove SAVESTRINGSIZE (now defined in p_saveg.h) // @@ -72,7 +75,7 @@ //----------------------------------------------------------------------------- static const char -rcsid[] = "$Id: m_menu.c 311 2006-01-21 14:15:29Z fraggle $"; +rcsid[] = "$Id: m_menu.c 322 2006-01-22 21:22:35Z fraggle $"; #include #include @@ -839,6 +842,8 @@ void M_DrawReadThis1(void) break; } + + lumpname = DEH_String(lumpname); V_DrawPatchDirect (0, 0, 0, W_CacheLumpName(lumpname, PU_CACHE)); @@ -1886,8 +1891,13 @@ void M_Drawer (void) for (i=0;imenuitems[i].name[0]) - V_DrawPatchDirect (x,y,0, - W_CacheLumpName(currentMenu->menuitems[i].name ,PU_CACHE)); + { + char *lumpname; + + lumpname = DEH_String(currentMenu->menuitems[i].name); + + V_DrawPatchDirect (x,y,0, W_CacheLumpName(lumpname, PU_CACHE)); + } y += LINEHEIGHT; } -- cgit v1.2.3