*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1438 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-11-20 18:31:41 +00:00
parent 71731bc001
commit cbad2f19b2
2 changed files with 2 additions and 6 deletions
+2 -2
View File
@@ -63,7 +63,7 @@ bool menuvisible()
{
menustack.setsize(0);
return false;
};
}
return true;
}
@@ -268,7 +268,7 @@ bool menukey(int code, bool isdown)
int n = curmenu->items.length(), menusel = curmenu->menusel;
if(isdown)
{
int pagesize = MAXMENU - (curmenu->header ? 1 : 0) - (curmenu->footer ? 1 : 0);
int pagesize = MAXMENU - (curmenu->header ? 2 : 0) - (curmenu->footer ? 2 : 0);
if(code==SDLK_PAGEUP) menusel -= pagesize;
else if(code==SDLK_PAGEDOWN)
{
-4
View File
@@ -242,25 +242,21 @@ void drawradar(int w, int h)
if(!showmap)
{
glDisable(GL_CULL_FACE);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glColor3f(1, 1, 1);
static Texture *overlaytex = NULL;
if(!overlaytex) overlaytex = textureload("packages/misc/radaroverlays.png", 3);
quad(overlaytex->id, VIRTW-overlaysize-10, 10, overlaysize, m_teammode ? 0.5f*team_int(player1->team) : 0, m_teammode ? 0 : 0.5f, 0.5f, 0.5f);
glEnable(GL_CULL_FACE);
}
}
void drawteamicons(int w, int h)
{
glDisable(GL_CULL_FACE);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glColor3f(1, 1, 1);
static Texture *icons = NULL;
if(!icons) icons = textureload("packages/misc/teamicons.png");
quad(icons->id, VIRTW-VIRTH/12-10, 10, VIRTH/12, team_int(player1->team) ? 0.5f : 0, 0, 0.5f, 0.5f);
glEnable(GL_CULL_FACE);
}
void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwater)