X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.c;h=8c243a4954c3bbec07e28c79afa20bfbbc1cec21;hb=0374121b837194f4e155bec64d511afd58e11aa3;hp=14c652b7dc98b2c0c40dbc788279fcec206b385d;hpb=a0f9dd84ca26309a8ab518caed02a0ce7debd4e2;p=rocksndiamonds.git diff --git a/src/game.c b/src/game.c index 14c652b7..8c243a49 100644 --- a/src/game.c +++ b/src/game.c @@ -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]; @@ -2991,6 +2991,9 @@ static void InitGameEngine(void) game_em.use_old_explosions = (game.engine_version < VERSION_IDENT(4,1,4,2)); + game_em.use_wrap_around = + (game.engine_version > VERSION_IDENT(4,1,4,1)); + // -------------------------------------------------------------------------- // set maximal allowed number of custom element changes per game frame @@ -14856,9 +14859,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: