- added draw_part()
[supertux.git] / src / special.cpp
index 6bcea59..25ffd17 100644 (file)
@@ -199,7 +199,6 @@ Upgrade::action(double frame_ratio)
         || (physic.get_velocity_x() > 0
             && !issolid(base.x, base.y + base.height))) {
         physic.enable_gravity(true);
-        physic.set_velocity(0, physic.get_velocity_y());
       }
     }
   }
@@ -308,8 +307,8 @@ Upgrade::collision(void* p_c_object, int c_object)
         }
       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);
           }
         }