X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.c;h=d67c64e6ce94128bc0ceeba421feb2da835124c3;hb=33bfa6789748737979047e8c8616f5c786b39958;hp=9cec7d1bd06054258377214ba45294bae56cbdf3;hpb=5f1e4bace7e080a41ef5fde75d0c3a3c263686a0;p=rocksndiamonds.git diff --git a/src/game.c b/src/game.c index 9cec7d1b..d67c64e6 100644 --- a/src/game.c +++ b/src/game.c @@ -7052,7 +7052,10 @@ static boolean ChangeElementNow(int x, int y, int element, int page) } if (something_has_changed) + { PlayLevelSoundElementAction(x, y, element, ACTION_CHANGING); + PlayLevelSoundElementAction(x, y, element, ACTION_PAGE_1 + page); + } } } else @@ -7062,6 +7065,7 @@ static boolean ChangeElementNow(int x, int y, int element, int page) ChangeElementNowExt(change, x, y, target_element); PlayLevelSoundElementAction(x, y, element, ACTION_CHANGING); + PlayLevelSoundElementAction(x, y, element, ACTION_PAGE_1 + page); } /* this uses direct change before indirect change */ @@ -7296,10 +7300,16 @@ static boolean CheckTriggeredElementChangeExt(int trigger_element, } #if USE_NEW_DELAYED_ACTION else if (change->has_action) + { ExecuteCustomElementAction(x, y, element, p); + PlayLevelSoundElementAction(x, y, element, ACTION_PAGE_1 + p); + } #else if (change->has_action) + { ExecuteCustomElementAction(x, y, element, p); + PlayLevelSoundElementAction(x, y, element, ACTION_PAGE_1 + p); + } #endif } } @@ -7369,10 +7379,16 @@ static boolean CheckElementChangeExt(int x, int y, } #if USE_NEW_DELAYED_ACTION else if (change->has_action) + { ExecuteCustomElementAction(x, y, element, p); + PlayLevelSoundElementAction(x, y, element, ACTION_PAGE_1 + p); + } #else if (change->has_action) + { ExecuteCustomElementAction(x, y, element, p); + PlayLevelSoundElementAction(x, y, element, ACTION_PAGE_1 + p); + } #endif } }