mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Fixed incorrect code flow in menu_NewGameMenu() function.
This commit is contained in:
parent
b97c9d119c
commit
213437deea
1 changed files with 98 additions and 96 deletions
|
@ -1145,21 +1145,22 @@ int menu_NewGameMenu()
|
||||||
|
|
||||||
char ch = 0;
|
char ch = 0;
|
||||||
|
|
||||||
while (KB_KeyWaiting())
|
check_keys:
|
||||||
|
if (KB_KeyWaiting())
|
||||||
{
|
{
|
||||||
HandleAsync();
|
HandleAsync();
|
||||||
|
|
||||||
ch = KB_GetCh();
|
ch = KB_GetCh();
|
||||||
if (!ch) {
|
if (!ch)
|
||||||
|
{
|
||||||
KB_GetCh();
|
KB_GetCh();
|
||||||
continue;
|
goto check_keys;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// handle key input
|
||||||
if (ch == asc_Enter)
|
if (ch == asc_Enter)
|
||||||
{
|
{
|
||||||
// loc_39ACA:
|
// loc_39ACA:
|
||||||
|
|
||||||
nameList[nSlot][nNameOffset] = 0;
|
nameList[nSlot][nNameOffset] = 0;
|
||||||
|
|
||||||
PlayLocalSound(StaticSound[kSound33], 0);
|
PlayLocalSound(StaticSound[kSound33], 0);
|
||||||
|
@ -1240,6 +1241,8 @@ int menu_NewGameMenu()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// loc_399FD:
|
// loc_399FD:
|
||||||
menu_DoPlasma();
|
menu_DoPlasma();
|
||||||
|
@ -1264,7 +1267,6 @@ int menu_NewGameMenu()
|
||||||
y += 22;
|
y += 22;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int menu_LoadGameMenu()
|
int menu_LoadGameMenu()
|
||||||
|
|
Loading…
Reference in a new issue