- /* Grab distros: */
- if (!dying)
- {
- Sector::current()->trygrabdistro(Vector(base.x, base.y), NO_BOUNCE);
- Sector::current()->trygrabdistro(Vector(base.x+ 31, base.y), NO_BOUNCE);
- Sector::current()->trygrabdistro(
- Vector(base.x, base.y + base.height), NO_BOUNCE);
- Sector::current()->trygrabdistro(
- Vector(base.x+ 31, base.y + base.height), NO_BOUNCE);
-
- if(size == BIG)
- {
- Sector::current()->trygrabdistro(
- Vector(base.x, base.y + base.height / 2), NO_BOUNCE);
- Sector::current()->trygrabdistro(
- Vector(base.x+ 31, base.y + base.height / 2), NO_BOUNCE);
- }
-
- }
-
- /* Enough distros for a One-up? */
- if (player_status.distros >= DISTROS_LIFEUP)
- {
- player_status.distros = player_status.distros - DISTROS_LIFEUP;
- if(player_status.lives < MAX_LIVES)
- ++player_status.lives;
- /*We want to hear the sound even, if MAX_LIVES is reached*/
- SoundManager::get()->play_sound(IDToSound(SND_LIFEUP));
- }