mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-15 09:34:18 +02:00
fix GYM sound playback (once)
This commit is contained in:
@@ -738,7 +738,7 @@ struct Level : IGame {
|
|||||||
void stopChannel(Sound::Sample *channel) {
|
void stopChannel(Sound::Sample *channel) {
|
||||||
if (channel == sndTrack) {
|
if (channel == sndTrack) {
|
||||||
sndTrack = NULL;
|
sndTrack = NULL;
|
||||||
if (level.state.flags.track != TR::LEVEL_INFO[level.id].track) // play ambient track
|
if (level.state.flags.track != TR::LEVEL_INFO[level.id].track && TR::LEVEL_INFO[level.id].track != TR::NO_TRACK) // play ambient track
|
||||||
playTrack(0);
|
playTrack(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user