mirror of
https://github.com/XProger/OpenLara.git
synced 2025-01-17 21:09:00 +01:00
fix playSound(SND_SECRET) crash for PSX levels
This commit is contained in:
parent
831e072943
commit
492cec1b79
BIN
bin/OpenLara.exe
BIN
bin/OpenLara.exe
Binary file not shown.
@ -195,6 +195,9 @@ struct Controller {
|
||||
}
|
||||
|
||||
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];
|
||||
if (a == -1) return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user