mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-01 19:00:34 +02:00
fix playSound(SND_SECRET) crash for PSX levels
This commit is contained in:
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 {
|
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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user