mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-11-03 23:56:47 +00:00 
			
		
		
		
	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.registerFunction ("saydone", 'l', "", opcodeSayDone, opcodeSayDoneExplicit);
 | 
			
		||||
            extensions.registerInstruction ("streammusic", "S", opcodeStreamMusic);
 | 
			
		||||
            extensions.registerInstruction ("playsound", "c", opcodePlaySound);
 | 
			
		||||
            extensions.registerInstruction ("playsound", "cXX", opcodePlaySound);
 | 
			
		||||
            extensions.registerInstruction ("playsoundvp", "cff", opcodePlaySoundVP);
 | 
			
		||||
            extensions.registerInstruction ("playsound3d", "c", opcodePlaySound3D,
 | 
			
		||||
            extensions.registerInstruction ("playsound3d", "cXX", opcodePlaySound3D,
 | 
			
		||||
                opcodePlaySound3DExplicit);
 | 
			
		||||
            extensions.registerInstruction ("playsound3dvp", "cff", opcodePlaySound3DVP,
 | 
			
		||||
                opcodePlaySound3DVPExplicit);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue