projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20051211-1-src
[rocksndiamonds.git]
/
src
/
game.c
diff --git
a/src/game.c
b/src/game.c
index 9cec7d1bd06054258377214ba45294bae56cbdf3..d67c64e6ce94128bc0ceeba421feb2da835124c3 100644
(file)
--- 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)
}
if (something_has_changed)
+ {
PlayLevelSoundElementAction(x, y, element, ACTION_CHANGING);
PlayLevelSoundElementAction(x, y, element, ACTION_CHANGING);
+ PlayLevelSoundElementAction(x, y, element, ACTION_PAGE_1 + page);
+ }
}
}
else
}
}
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);
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 */
}
/* 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)
}
#if USE_NEW_DELAYED_ACTION
else if (change->has_action)
+ {
ExecuteCustomElementAction(x, y, element, p);
ExecuteCustomElementAction(x, y, element, p);
+ PlayLevelSoundElementAction(x, y, element, ACTION_PAGE_1 + p);
+ }
#else
if (change->has_action)
#else
if (change->has_action)
+ {
ExecuteCustomElementAction(x, y, element, p);
ExecuteCustomElementAction(x, y, element, p);
+ PlayLevelSoundElementAction(x, y, element, ACTION_PAGE_1 + p);
+ }
#endif
}
}
#endif
}
}
@@
-7369,10
+7379,16
@@
static boolean CheckElementChangeExt(int x, int y,
}
#if USE_NEW_DELAYED_ACTION
else if (change->has_action)
}
#if USE_NEW_DELAYED_ACTION
else if (change->has_action)
+ {
ExecuteCustomElementAction(x, y, element, p);
ExecuteCustomElementAction(x, y, element, p);
+ PlayLevelSoundElementAction(x, y, element, ACTION_PAGE_1 + p);
+ }
#else
if (change->has_action)
#else
if (change->has_action)
+ {
ExecuteCustomElementAction(x, y, element, p);
ExecuteCustomElementAction(x, y, element, p);
+ PlayLevelSoundElementAction(x, y, element, ACTION_PAGE_1 + p);
+ }
#endif
}
}
#endif
}
}