changed SOUND_FROM_PLAYER from -1 to -2 to maintain compatibility with SOUND_FROM_LOCAL_PLAYER
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401054
This commit is contained in:
		
							parent
							
								
									b5831fd263
								
							
						
					
					
						commit
						f2ebf2f4b9
					
				@ -147,7 +147,7 @@ static cell_t EmitSound(IPluginContext *pContext, const cell_t *params)
 | 
			
		||||
	 * intelligently redirect each sound.
 | 
			
		||||
	 */
 | 
			
		||||
 | 
			
		||||
	if (entity == SOUND_FROM_LOCAL_PLAYER && engine->IsDedicatedServer())
 | 
			
		||||
	if (entity == -2 && engine->IsDedicatedServer())
 | 
			
		||||
	{
 | 
			
		||||
		for (cell_t i=0; i<params[2]; i++)
 | 
			
		||||
		{
 | 
			
		||||
 | 
			
		||||
@ -19,9 +19,14 @@
 | 
			
		||||
#define _sdktools_sound_included
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Sound is from the client.
 | 
			
		||||
 * Sound should be from the target client.
 | 
			
		||||
 */
 | 
			
		||||
#define SOUND_FROM_PLAYER		-1
 | 
			
		||||
#define SOUND_FROM_PLAYER		-2
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Sound should be from the listen server player.
 | 
			
		||||
 */
 | 
			
		||||
#define SOUND_FROM_LOCAL_PLAYER	-1
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Sound is from the world.
 | 
			
		||||
@ -184,7 +189,7 @@ native StopSound(entity, channel, const String:name[]);
 | 
			
		||||
native EmitSound(const clients[],
 | 
			
		||||
				 numClients,
 | 
			
		||||
				 const String:sample[],
 | 
			
		||||
				 entity = SOUND_FROM_WORLD,
 | 
			
		||||
				 entity = SOUND_FROM_PLAYER,
 | 
			
		||||
				 channel = SNDCHAN_AUTO,
 | 
			
		||||
				 level = SNDLEVEL_NORMAL,
 | 
			
		||||
				 flags = SND_NOFLAGS,
 | 
			
		||||
@ -221,7 +226,7 @@ native EmitSound(const clients[],
 | 
			
		||||
native EmitSentence(const clients[],
 | 
			
		||||
				 numClients,
 | 
			
		||||
				 sentence,
 | 
			
		||||
				 entity = SOUND_FROM_WORLD,
 | 
			
		||||
				 entity,
 | 
			
		||||
				 channel = SNDCHAN_AUTO,
 | 
			
		||||
				 level = SNDLEVEL_NORMAL,
 | 
			
		||||
				 flags = SND_NOFLAGS,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user