- fixed 'jump' on flower collection
authorIngo Ruhnke <grumbel@gmx.de>
Mon, 26 Apr 2004 10:51:07 +0000 (10:51 +0000)
committerIngo Ruhnke <grumbel@gmx.de>
Mon, 26 Apr 2004 10:51:07 +0000 (10:51 +0000)
SVN-Revision: 733

src/special.cpp

index fe559fb..ced26fb 100644 (file)
@@ -319,9 +319,12 @@ Upgrade::collision(void* p_c_object, int c_object)
         {
           play_sound(sounds[SND_COFFEE], SOUND_CENTER_SPEAKER);
           pplayer->got_coffee = true;
-          pplayer->size = BIG;
-          pplayer->base.height = 64;
-         pplayer->base.y -= 32;
+          if (pplayer->size == SMALL)
+            {
+              pplayer->size = BIG;
+              pplayer->base.height = 64;
+              pplayer->base.y -= 32;
+            }
          if(collision_object_map(pplayer->base))
             {
               pplayer->base.height = 32;