- fixed input on the map.

This commit is contained in:
Christoph Oelckers 2019-12-13 21:13:42 +01:00
parent cbfb79977a
commit 0885befe6b

View file

@ -751,12 +751,11 @@ int menu_DrawTheMap(int nLevel, int nLevelNew, int nLevelBest)
moveTimer = (int)totalclock; moveTimer = (int)totalclock;
} }
#if 0
if (curYPos == destYPos) if (curYPos == destYPos)
{ {
if (I_MenuUp()) if (inputState.GetKeyStatus[sc_UpArrow])
{ {
I_MenuUpClear(); inputState.ClearKeyStatus(sc_UpArrow);
if (nLevelNew <= nLevelBest) if (nLevelNew <= nLevelBest)
{ {
@ -776,9 +775,9 @@ int menu_DrawTheMap(int nLevel, int nLevelNew, int nLevelBest)
} }
} }
if (I_MenuDown()) if (inputState.GetKeyStatus[sc_DownArrow])
{ {
I_MenuDownClear(); inputState.ClearKeyStatus(sc_DownArrow);
if (nLevelNew > 0) if (nLevelNew > 0)
{ {
@ -833,7 +832,6 @@ int menu_DrawTheMap(int nLevel, int nLevelNew, int nLevelBest)
nIdleSeconds = 0; nIdleSeconds = 0;
} }
#endif
} }
MySetView(nViewLeft, nViewTop, nViewRight, nViewBottom); MySetView(nViewLeft, nViewTop, nViewRight, nViewBottom);