fixed bug with reanimating killed player by CE condition
[rocksndiamonds.git] / src / game.c
index 14c652b7dc98b2c0c40dbc788279fcec206b385d..d67a91a0b8c743ba46cbb55d245067f314897fa4 100644 (file)
@@ -1785,7 +1785,7 @@ static void InitPlayerField(int x, int y, int element, boolean init_game)
     player->jy = player->last_jy = y;
   }
 
-  if (!init_game)
+  // always check if player was just killed and should be reanimated
   {
     int player_nr = GET_PLAYER_NR(element);
     struct PlayerInfo *player = &stored_player[player_nr];
@@ -14856,9 +14856,6 @@ void PlayLevelSound_EM(int xx, int yy, int element_em, int sample)
   int x = xx - offset;
   int y = yy - offset;
 
-  x = correctLevelPosX_EM(x);
-  y = correctLevelPosY_EM(y);
-
   switch (sample)
   {
     case SOUND_blank: