/***********************************************************
* Rocks'n'Diamonds -- McDuffin Strikes Back! *
*----------------------------------------------------------*
-* (c) 1995-2001 Artsoft Entertainment *
+* (c) 1995-2002 Artsoft Entertainment *
* Holger Schemel *
* Detmolder Strasse 189 *
* 33604 Bielefeld *
{
if (!(door_state & DOOR_NO_DELAY))
{
+ /* opening door sound has priority over simultaneously closing door */
if (door_state & (DOOR_OPEN_1 | DOOR_OPEN_2))
PlaySoundStereo(SND_MENU_DOOR_OPENING, SOUND_MAX_RIGHT);
- if (door_state & (DOOR_CLOSE_1 | DOOR_CLOSE_2))
+ else if (door_state & (DOOR_CLOSE_1 | DOOR_CLOSE_2))
PlaySoundStereo(SND_MENU_DOOR_CLOSING, SOUND_MAX_RIGHT);
}