From e770750ce7842ca427138ab9700ccdd1ec5fa859 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 12 Jan 2023 18:14:20 +0100 Subject: [PATCH] removed duplicated code --- src/tools.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/tools.c b/src/tools.c index 541787c0..c5bdd986 100644 --- a/src/tools.c +++ b/src/tools.c @@ -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); -- 2.34.1