mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +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 xoffset;
|
||||
int widest = -1;
|
||||
int totalheight = 0;
|
||||
char litname[80];
|
||||
float scale = SCR_GetMenuScale();
|
||||
float scale = SCR_GetMenuScale();
|
||||
char *names[] =
|
||||
{
|
||||
"m_main_game",
|
||||
|
@ -596,8 +595,6 @@ M_Main_Draw(void)
|
|||
{
|
||||
widest = w;
|
||||
}
|
||||
|
||||
totalheight += (h + 12);
|
||||
}
|
||||
|
||||
ystart = (viddef.height / (2 * scale) - 110);
|
||||
|
@ -627,8 +624,8 @@ M_Main_Draw(void)
|
|||
const char *
|
||||
M_Main_Key(int key)
|
||||
{
|
||||
const char *sound = menu_move_sound;
|
||||
int menu_key = Key_GetMenuKey(key);
|
||||
const char *sound = menu_move_sound;
|
||||
int menu_key = Key_GetMenuKey(key);
|
||||
|
||||
switch (menu_key)
|
||||
{
|
||||
|
@ -732,7 +729,7 @@ StartNetworkServerFunc(void *unused)
|
|||
static 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.nitems = 0;
|
||||
|
|
Loading…
Reference in a new issue