fixed crumbling graphics bug when player explodes after digging sand
authorHolger Schemel <info@artsoft.org>
Sat, 25 Mar 2023 08:54:24 +0000 (09:54 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 25 Mar 2023 08:54:24 +0000 (09:54 +0100)
src/game.c

index a0b51c750a21cb252a697eb11db1e78492ecbaec..dd9df82c71dd1bbb22e6eb9ae654837531ee6d20 100644 (file)
@@ -13948,7 +13948,7 @@ void KillPlayer(struct PlayerInfo *player)
   player->killed = TRUE;
 
   // remove accessible field at the player's position
-  Tile[jx][jy] = EL_EMPTY;
+  RemoveField(jx, jy);
 
   // deactivate shield (else Bang()/Explode() would not work right)
   player->shield_normal_time_left = 0;