forked from mirror/openmw-tes3mp
Ignore extra arguments in playSound and playSound3D.
A common mistake in mods is to use playSound with volume/pitch arguments, which only playSoundVP supports. Previously these extra arguments raised a parser error, making the respective mod unusable.
This commit is contained in:
parent
f375d07c16
commit
e9b02a13c3
1 changed files with 2 additions and 2 deletions
|
@ -341,9 +341,9 @@ namespace Compiler
|
||||||
extensions.registerInstruction ("say", "SS", opcodeSay, opcodeSayExplicit);
|
extensions.registerInstruction ("say", "SS", opcodeSay, opcodeSayExplicit);
|
||||||
extensions.registerFunction ("saydone", 'l', "", opcodeSayDone, opcodeSayDoneExplicit);
|
extensions.registerFunction ("saydone", 'l', "", opcodeSayDone, opcodeSayDoneExplicit);
|
||||||
extensions.registerInstruction ("streammusic", "S", opcodeStreamMusic);
|
extensions.registerInstruction ("streammusic", "S", opcodeStreamMusic);
|
||||||
extensions.registerInstruction ("playsound", "c", opcodePlaySound);
|
extensions.registerInstruction ("playsound", "cXX", opcodePlaySound);
|
||||||
extensions.registerInstruction ("playsoundvp", "cff", opcodePlaySoundVP);
|
extensions.registerInstruction ("playsoundvp", "cff", opcodePlaySoundVP);
|
||||||
extensions.registerInstruction ("playsound3d", "c", opcodePlaySound3D,
|
extensions.registerInstruction ("playsound3d", "cXX", opcodePlaySound3D,
|
||||||
opcodePlaySound3DExplicit);
|
opcodePlaySound3DExplicit);
|
||||||
extensions.registerInstruction ("playsound3dvp", "cff", opcodePlaySound3DVP,
|
extensions.registerInstruction ("playsound3dvp", "cff", opcodePlaySound3DVP,
|
||||||
opcodePlaySound3DVPExplicit);
|
opcodePlaySound3DVPExplicit);
|
||||||
|
|
Loading…
Reference in a new issue