From: Holger Schemel Date: Thu, 12 Jan 2023 17:14:20 +0000 (+0100) Subject: removed duplicated code X-Git-Tag: 4.3.5.0~40 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=e770750ce7842ca427138ab9700ccdd1ec5fa859;p=rocksndiamonds.git removed duplicated code --- 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);