removed duplicated code
authorHolger Schemel <info@artsoft.org>
Thu, 12 Jan 2023 17:14:20 +0000 (18:14 +0100)
committerHolger Schemel <info@artsoft.org>
Thu, 12 Jan 2023 17:14:20 +0000 (18:14 +0100)
src/tools.c

index 541787c052976539b76023aa02290eacc1f284fd..c5bdd986080f1c13f0882bb0a5175dd06b4e7bf6 100644 (file)
@@ -4269,13 +4269,9 @@ static void DrawPlayerExt(struct PlayerInfo *player, int drawing_stage)
        DrawLevelElement(jx, jy, Back[jx][jy]);
       else
        DrawLevelElement(jx, jy, EL_EMPTY);
-
-      if (Back[next_jx][next_jy])
-       DrawLevelElement(next_jx, next_jy, Back[next_jx][next_jy]);
-      else
-       DrawLevelElement(next_jx, next_jy, EL_EMPTY);
     }
-    else if (Back[next_jx][next_jy])
+
+    if (Back[next_jx][next_jy])
       DrawLevelElement(next_jx, next_jy, Back[next_jx][next_jy]);
     else
       DrawLevelElement(next_jx, next_jy, EL_EMPTY);