Jetpack / aqualung fix.
This commit is contained in:
parent
5bfea20534
commit
827a825c2d
|
@ -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];
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue