Fix cursor wrapping in the menus.
This commit is contained in:
parent
b343805257
commit
a7493773c4
|
@ -341,7 +341,7 @@ int doTitle()
|
||||||
if (engine.keyState[SDLK_UP])
|
if (engine.keyState[SDLK_UP])
|
||||||
{
|
{
|
||||||
engine.keyState[SDLK_UP] = 0;
|
engine.keyState[SDLK_UP] = 0;
|
||||||
wrapChar(&(--selectedOption), 1, listLength);
|
wrapChar(&(--selectedOption), 1, listLength + 1);
|
||||||
if (menuType == 0)
|
if (menuType == 0)
|
||||||
if ((selectedOption == 2) || (selectedOption == 3))
|
if ((selectedOption == 2) || (selectedOption == 3))
|
||||||
if (continueSaveSlot == 0)
|
if (continueSaveSlot == 0)
|
||||||
|
@ -350,7 +350,7 @@ int doTitle()
|
||||||
if (engine.keyState[SDLK_DOWN])
|
if (engine.keyState[SDLK_DOWN])
|
||||||
{
|
{
|
||||||
engine.keyState[SDLK_DOWN] = 0;
|
engine.keyState[SDLK_DOWN] = 0;
|
||||||
wrapChar(&(++selectedOption), 1, listLength);
|
wrapChar(&(++selectedOption), 0, listLength);
|
||||||
if (menuType == 0)
|
if (menuType == 0)
|
||||||
if ((selectedOption == 2) || (selectedOption == 3))
|
if ((selectedOption == 2) || (selectedOption == 3))
|
||||||
if (continueSaveSlot == 0)
|
if (continueSaveSlot == 0)
|
||||||
|
|
Loading…
Reference in New Issue