Fix cursor wrapping in the menus.

This commit is contained in:
Guus Sliepen 2012-12-09 16:18:30 +01:00
parent b343805257
commit a7493773c4
1 changed files with 2 additions and 2 deletions

View File

@ -341,7 +341,7 @@ int doTitle()
if (engine.keyState[SDLK_UP])
{
engine.keyState[SDLK_UP] = 0;
wrapChar(&(--selectedOption), 1, listLength);
wrapChar(&(--selectedOption), 1, listLength + 1);
if (menuType == 0)
if ((selectedOption == 2) || (selectedOption == 3))
if (continueSaveSlot == 0)
@ -350,7 +350,7 @@ int doTitle()
if (engine.keyState[SDLK_DOWN])
{
engine.keyState[SDLK_DOWN] = 0;
wrapChar(&(++selectedOption), 1, listLength);
wrapChar(&(++selectedOption), 0, listLength);
if (menuType == 0)
if ((selectedOption == 2) || (selectedOption == 3))
if (continueSaveSlot == 0)