X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.c;h=de6aa0c5ce229725a407d0ef4101ef4178ef9515;hb=d703f1f2c94e753d668d793e7d2c6c6c71fc9fa8;hp=455599f51cf88d923d8d76a8fce8dc9b71f690eb;hpb=8a0ac1d204ca31a92875d378138e3ec4889ef37c;p=rocksndiamonds.git diff --git a/src/game.c b/src/game.c index 455599f5..de6aa0c5 100644 --- a/src/game.c +++ b/src/game.c @@ -4439,8 +4439,13 @@ void StartMoving(int x, int y) { if (Feld[newx][newy] == EL_EXIT_OPEN) { +#if 1 + RemoveField(x, y); + DrawLevelField(x, y); +#else Feld[x][y] = EL_EMPTY; DrawLevelField(x, y); +#endif PlayLevelSound(newx, newy, SND_PENGUIN_PASSING); if (IN_SCR_FIELD(SCREENX(newx), SCREENY(newy))) @@ -6759,6 +6764,7 @@ void GameActions() StartMoving(x, y); #if 1 + element = Feld[x][y]; graphic = el_act_dir2img(element, GfxAction[x][y], GfxDir[x][y]); #if 0 if (element == EL_MOLE) @@ -8918,13 +8924,10 @@ void InitPlayLevelSound() { int num_sounds = getSoundListSize(); - if (loop_sound_frame != NULL) - free(loop_sound_frame); - - if (loop_sound_volume != NULL) - free(loop_sound_volume); + checked_free(loop_sound_frame); + checked_free(loop_sound_volume); - loop_sound_frame = checked_calloc(num_sounds * sizeof(int)); + loop_sound_frame = checked_calloc(num_sounds * sizeof(int)); loop_sound_volume = checked_calloc(num_sounds * sizeof(int)); }