mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-21 19:31:13 +00:00
Merge pull request #780 from devnexen/m_main_draw_fix
menu code unused var warning fix.
This commit is contained in:
commit
896bb48d36
1 changed files with 4 additions and 7 deletions
|
@ -575,9 +575,8 @@ M_Main_Draw(void)
|
||||||
int ystart;
|
int ystart;
|
||||||
int xoffset;
|
int xoffset;
|
||||||
int widest = -1;
|
int widest = -1;
|
||||||
int totalheight = 0;
|
|
||||||
char litname[80];
|
char litname[80];
|
||||||
float scale = SCR_GetMenuScale();
|
float scale = SCR_GetMenuScale();
|
||||||
char *names[] =
|
char *names[] =
|
||||||
{
|
{
|
||||||
"m_main_game",
|
"m_main_game",
|
||||||
|
@ -596,8 +595,6 @@ M_Main_Draw(void)
|
||||||
{
|
{
|
||||||
widest = w;
|
widest = w;
|
||||||
}
|
}
|
||||||
|
|
||||||
totalheight += (h + 12);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ystart = (viddef.height / (2 * scale) - 110);
|
ystart = (viddef.height / (2 * scale) - 110);
|
||||||
|
@ -627,8 +624,8 @@ M_Main_Draw(void)
|
||||||
const char *
|
const char *
|
||||||
M_Main_Key(int key)
|
M_Main_Key(int key)
|
||||||
{
|
{
|
||||||
const char *sound = menu_move_sound;
|
const char *sound = menu_move_sound;
|
||||||
int menu_key = Key_GetMenuKey(key);
|
int menu_key = Key_GetMenuKey(key);
|
||||||
|
|
||||||
switch (menu_key)
|
switch (menu_key)
|
||||||
{
|
{
|
||||||
|
@ -732,7 +729,7 @@ StartNetworkServerFunc(void *unused)
|
||||||
static void
|
static void
|
||||||
Multiplayer_MenuInit(void)
|
Multiplayer_MenuInit(void)
|
||||||
{
|
{
|
||||||
float scale = SCR_GetMenuScale();
|
float scale = SCR_GetMenuScale();
|
||||||
|
|
||||||
s_multiplayer_menu.x = (int)(viddef.width * 0.50f) - 64 * scale;
|
s_multiplayer_menu.x = (int)(viddef.width * 0.50f) - 64 * scale;
|
||||||
s_multiplayer_menu.nitems = 0;
|
s_multiplayer_menu.nitems = 0;
|
||||||
|
|
Loading…
Reference in a new issue