Jetpack / aqualung fix.

This commit is contained in:
Steve 2018-02-04 08:20:49 +00:00
parent 5bfea20534
commit 827a825c2d
2 changed files with 8 additions and 1 deletions

View File

@ -211,7 +211,7 @@ struct Bob {
int outTimer;
int stunTimer;
int immuneTimer;
int power, powerMax;
float power, powerMax;
int jpEffectTimer;
PointF checkpoints[MAX_CHECKPOINTS];
Entity *items[MAX_ITEMS];

View File

@ -176,6 +176,13 @@ static void doWorldInProgress(void)
game.config.control[CONTROL_DOWN] = app.keyboard[SDL_SCANCODE_S];
game.config.control[CONTROL_JUMP] = app.keyboard[SDL_SCANCODE_I];
if (app.keyboard[SDL_SCANCODE_SPACE])
{
world.bob->activate(1);
app.keyboard[SDL_SCANCODE_SPACE] = 0;
}
if (!world.showingInfoMessage)
{
doBob();