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:
David Anderson
2007-07-07 17:51:29 +00:00
parent b5831fd263
commit f2ebf2f4b9
2 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -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++)
{