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.
draw_from = game->drawing_buffer[new_y][new_x];
// handle special case of player running into enemy/explosion from top or left side
- if (el_player(tile_last) && el_destroying(tile_from))
+ if (el_player(tile_last) && !el_player(tile) && el_destroying(tile_from))
tile_from = tile_last;
// handle special case of player digging or snapping clock (which gets replaced by sand)