[StopSound] Fix music if statement.
This commit is contained in:
parent
7b4b8fee77
commit
f8a4043e5d
@ -770,7 +770,7 @@ public void OnReloadEffect(DataPack pack)
|
|||||||
public Action Hook_AmbientSound(char sample[PLATFORM_MAX_PATH], int &entity, float &volume, int &level, int &pitch, float pos[3], int &flags, float &delay)
|
public Action Hook_AmbientSound(char sample[PLATFORM_MAX_PATH], int &entity, float &volume, int &level, int &pitch, float pos[3], int &flags, float &delay)
|
||||||
{
|
{
|
||||||
// Are we playing music?
|
// Are we playing music?
|
||||||
if(!strncmp(sample, "music", 5, false) && !strncmp(sample, "#", 1, false))
|
if(strncmp(sample, "music", 5, false) != 0 && strncmp(sample, "#", 1, false) != 0)
|
||||||
return Plugin_Continue;
|
return Plugin_Continue;
|
||||||
|
|
||||||
char sEntity[16];
|
char sEntity[16];
|
||||||
|
Loading…
Reference in New Issue
Block a user