Jetpack / aqualung fix.
This commit is contained in:
parent
5bfea20534
commit
827a825c2d
|
@ -211,7 +211,7 @@ struct Bob {
|
||||||
int outTimer;
|
int outTimer;
|
||||||
int stunTimer;
|
int stunTimer;
|
||||||
int immuneTimer;
|
int immuneTimer;
|
||||||
int power, powerMax;
|
float power, powerMax;
|
||||||
int jpEffectTimer;
|
int jpEffectTimer;
|
||||||
PointF checkpoints[MAX_CHECKPOINTS];
|
PointF checkpoints[MAX_CHECKPOINTS];
|
||||||
Entity *items[MAX_ITEMS];
|
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_DOWN] = app.keyboard[SDL_SCANCODE_S];
|
||||||
game.config.control[CONTROL_JUMP] = app.keyboard[SDL_SCANCODE_I];
|
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)
|
if (!world.showingInfoMessage)
|
||||||
{
|
{
|
||||||
doBob();
|
doBob();
|
||||||
|
|
Loading…
Reference in New Issue