*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1495 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-12-26 08:44:59 +00:00
parent f3f363ab0c
commit a46fa45901
25 changed files with 133 additions and 124 deletions
+3 -3
View File
@@ -3,7 +3,7 @@
#include "pch.h"
#include "cube.h"
hashtable<char *, gmenu> menus;
hashtable<const char *, gmenu> menus;
gmenu *curmenu = NULL, *lastmenu = NULL;
vector<gmenu *> menustack;
@@ -79,7 +79,7 @@ void rendermenu()
m.inited = true;
if(m.menusel>=m.items.length()) m.menusel = max(m.items.length()-1, 0);
}
char *title = m.title;
const char *title = m.title;
if(!title) { static string buf; s_sprintf(buf)("[ %s menu ]", m.name); title = buf; }
int hitems = (m.header ? 2 : 0) + (m.footer ? 2 : 0),
pagesize = MAXMENU - hitems,
@@ -167,7 +167,7 @@ void rendermenumdl()
glPopMatrix();
}
void *addmenu(char *name, char *title, bool allowinput, void (__cdecl *refreshfunc)(void *, bool))
void *addmenu(const char *name, const char *title, bool allowinput, void (__cdecl *refreshfunc)(void *, bool))
{
name = newstring(name);
gmenu &menu = menus[name];