Press 6 to complete mission in debug mode.

This commit is contained in:
Steve 2016-02-21 16:55:29 +00:00
parent 03712285c4
commit fd56b75a6a
3 changed files with 9 additions and 6 deletions

View File

@ -289,12 +289,6 @@ static void handleKeyboard(void)
{ {
battle.status = MS_PAUSED; battle.status = MS_PAUSED;
} }
if (dev.debug && app.keyboard[SDL_SCANCODE_F10])
{
completeMission();
battle.missionFinishedTimer = -FPS;
}
} }
static void start(void) static void start(void)

View File

@ -59,6 +59,12 @@ void doDevKeys(void)
printf("DEBUG: dev.allImmortal=%d\n", dev.allImmortal); printf("DEBUG: dev.allImmortal=%d\n", dev.allImmortal);
} }
if (app.keyboard[SDL_SCANCODE_6])
{
completeMission();
battle.missionFinishedTimer = -FPS;
}
if (app.keyboard[SDL_SCANCODE_9]) if (app.keyboard[SDL_SCANCODE_9])
{ {
dev.showFPS = !dev.showFPS; dev.showFPS = !dev.showFPS;

View File

@ -21,4 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "../common.h" #include "../common.h"
extern App app; extern App app;
extern Battle battle;
extern Dev dev; extern Dev dev;
extern void completeMission(void);