forked from KolibriOS/kolibrios
LaserTank fix menu pause
git-svn-id: svn://kolibrios.org@5340 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
b4690e4240
commit
fc4f197386
@ -992,19 +992,19 @@ void key_press(int key)
|
||||
case MODE_PAUSE:
|
||||
if (key == 27)
|
||||
SetMode(MODE_LEVELS);
|
||||
else
|
||||
if ((key == 32 || key == 13) && (gameStatus == GAME_NONE || (gameStatus == GAME_VICTORY && levelIndex < (levelCount - 1))))
|
||||
{
|
||||
if (gameStatus == GAME_VICTORY)
|
||||
openLevel(levelIndex + 1);
|
||||
SetMode(MODE_GAME);
|
||||
}
|
||||
else
|
||||
if (key == 114)
|
||||
{
|
||||
openLevel(levelIndex);
|
||||
SetMode(MODE_GAME);
|
||||
}
|
||||
|
||||
if ((key == 32 || key == 13) && (gameStatus == GAME_NONE || (gameStatus == GAME_VICTORY && levelIndex < (levelCount - 1))))
|
||||
{
|
||||
if (gameStatus == GAME_VICTORY)
|
||||
openLevel(levelIndex + 1);
|
||||
SetMode(MODE_GAME);
|
||||
}
|
||||
|
||||
if (key == 114 || (gameStatus == GAME_DEFEAT && (key == 32 || key == 13)))
|
||||
{
|
||||
openLevel(levelIndex);
|
||||
SetMode(MODE_GAME);
|
||||
}
|
||||
break;
|
||||
case MODE_GAME:
|
||||
switch (key)
|
||||
|
Loading…
Reference in New Issue
Block a user