|| (physic.get_velocity_x() > 0
&& !issolid(base.x, base.y + base.height))) {
physic.enable_gravity(true);
- physic.set_velocity(0, physic.get_velocity_y());
}
}
}
}
else if (kind == UPGRADE_1UP)
{
- if(pplayer->lives < MAX_LIVES) {
- pplayer->lives++;
+ if(player_status.lives < MAX_LIVES) {
+ player_status.lives++;
play_sound(sounds[SND_LIFEUP], SOUND_CENTER_SPEAKER);
}
}