Fixed incorrect code flow in menu_NewGameMenu() function.

This commit is contained in:
sirlemonhead 2019-09-20 18:23:47 +01:00 committed by Christoph Oelckers
parent b97c9d119c
commit 213437deea

View file

@ -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()