From: Holger Schemel Date: Thu, 17 Dec 2020 12:26:06 +0000 (+0100) Subject: removed duplicate code X-Git-Tag: 4.2.2.0~11 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=715b3eb99865234a42dbec1fce419f750c640327 removed duplicate code --- diff --git a/src/game.c b/src/game.c index dafe7cbf..ecd5f264 100644 --- a/src/game.c +++ b/src/game.c @@ -2536,8 +2536,7 @@ static void UpdateGameControlValues(void) if (ANIM_MODE(graphic) == ANIM_CE_SCORE) gpc->gfx_frame = element_info[element].collect_score; - gpc->frame = getGraphicAnimationFrame(el2panelimg(gpc->value), - gpc->gfx_frame); + gpc->frame = getGraphicAnimationFrame(graphic, gpc->gfx_frame); if (ANIM_MODE(graphic) == ANIM_RANDOM) gfx.anim_random_frame = last_anim_random_frame;