fixed bug with playing two global game sounds as game element sounds
authorHolger Schemel <info@artsoft.org>
Sun, 12 Mar 2023 12:17:40 +0000 (13:17 +0100)
committerHolger Schemel <info@artsoft.org>
Sun, 12 Mar 2023 12:25:53 +0000 (13:25 +0100)
commitca4a7685461a6d92a403d9ec14035c0329e13c01
tree864240aa2818c3c769d6499894ee5b4e12961ee4
parentc0bc8a25893dce73e8a64d2fb6f6f330bdbbdf38
fixed bug with playing two global game sounds as game element sounds

The two game sounds "game.losing" and "game.sokoban_solving" were
played as playfield position related, game element specific sounds
before (which especially caused problems with "game.losing" being
defined as a loop sound, but which was stopped after a very short
time, because loop sounds have to be regularly re-initiated to keep
playing, which was not the case here).

As a result, the sound effect "game.losing" (an evil laughter after
the player has died) could effectively not be heard anymore after a
game was lost for many years.
src/game.c