fixed graphical bug with snapping player drawn as moving into explosion
authorHolger Schemel <holger.schemel@virtion.de>
Mon, 23 Sep 2024 17:37:08 +0000 (19:37 +0200)
committerHolger Schemel <holger.schemel@virtion.de>
Mon, 23 Sep 2024 17:43:12 +0000 (19:43 +0200)
commit6c730723c8c2b5f15ffe967a02d8207d7bd23778
treee7a41cb46442256b4a6500043dca0eebabd05aec
parenteba9a83d8fc5969612cbb7b7b112f5af03c46fcc
fixed graphical bug with snapping player drawn as moving into explosion

This fixes a graphical bug with smooth movement animation in the BD
engine: When the player is snapping a tile that immediately after is
replaced by an explosion next to the player, the player was drawn as
moving into that explosion (without actually moving at all, as he was
only snapping). This change fixes this bug by checking if the player
actually moved.
src/game_bd/bd_graphics.c