rnd-19980825
[rocksndiamonds.git] / src / game.c
index c75c9dd466177a3bbd8cbab9d79879e9853492e1..73fca1bdbf98ce201d96d4b8d1d968a0dc55ba1f 100644 (file)
@@ -1008,6 +1008,13 @@ void Impact(int x, int y)
        break;
       case EL_FELSBROCKEN:
        sound = SND_KLOPF;
+
+
+
+       printf("FUMPF!\n");
+
+
+
        break;
       case EL_SCHLUESSEL:
       case EL_SCHLUESSEL1:
@@ -2581,15 +2588,12 @@ void GameActions()
   */
 
 
-
   if (PlayerMovPos)
     ScrollFigure(0);
 
   DrawPlayerField();
 
 
-
-
   if (!DelayReached(&action_delay, action_delay_value))
     return;
 
@@ -2916,7 +2920,9 @@ void ScrollFigure(int init)
     if (oldJX != -1 && oldJY != -1)
       DrawLevelElement(oldJX,oldJY, Feld[oldJX][oldJY]);
 
-    if (Feld[lastJX][lastJY] == EL_LEERRAUM)
+    if (Feld[lastJX][lastJY] == EL_LEERRAUM &&
+       IN_LEV_FIELD(lastJX,lastJY-1) &&
+       CAN_FALL(Feld[lastJX][lastJY-1]))
       Feld[lastJX][lastJY] = EL_PLAYER_IS_LEAVING;
     DrawLevelElement(lastJX,lastJY, Feld[lastJX][lastJY]);
     DrawPlayerField();