1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-13 16:44:50 +02:00

fix GYM sound playback (once)

This commit is contained in:
XProger
2019-01-12 14:41:50 +03:00
parent b890fec271
commit 9d1cd91f1d

View File

@@ -738,7 +738,7 @@ struct Level : IGame {
void stopChannel(Sound::Sample *channel) {
if (channel == sndTrack) {
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);
}
}