1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-07-31 18:30:19 +02:00

fix playSound(SND_SECRET) crash for PSX levels

This commit is contained in:
XProger
2017-02-06 04:56:14 +03:00
parent 831e072943
commit 492cec1b79
2 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

@@ -195,6 +195,9 @@ struct Controller {
} }
void playSound(int id, const vec3 &pos, int flags) const { void playSound(int id, const vec3 &pos, int flags) const {
if (level->version == TR::Level::VER_TR1_PSX && id == TR::SND_SECRET)
return;
int16 a = level->soundsMap[id]; int16 a = level->soundsMap[id];
if (a == -1) return; if (a == -1) return;