Press 6 to complete mission in debug mode.
This commit is contained in:
parent
03712285c4
commit
fd56b75a6a
|
@ -289,12 +289,6 @@ static void handleKeyboard(void)
|
|||
{
|
||||
battle.status = MS_PAUSED;
|
||||
}
|
||||
|
||||
if (dev.debug && app.keyboard[SDL_SCANCODE_F10])
|
||||
{
|
||||
completeMission();
|
||||
battle.missionFinishedTimer = -FPS;
|
||||
}
|
||||
}
|
||||
|
||||
static void start(void)
|
||||
|
|
|
@ -59,6 +59,12 @@ void doDevKeys(void)
|
|||
printf("DEBUG: dev.allImmortal=%d\n", dev.allImmortal);
|
||||
}
|
||||
|
||||
if (app.keyboard[SDL_SCANCODE_6])
|
||||
{
|
||||
completeMission();
|
||||
battle.missionFinishedTimer = -FPS;
|
||||
}
|
||||
|
||||
if (app.keyboard[SDL_SCANCODE_9])
|
||||
{
|
||||
dev.showFPS = !dev.showFPS;
|
||||
|
|
|
@ -21,4 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#include "../common.h"
|
||||
|
||||
extern App app;
|
||||
extern Battle battle;
|
||||
extern Dev dev;
|
||||
|
||||
extern void completeMission(void);
|
||||
|
|
Loading…
Reference in New Issue