X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=clvm_cmds.c;h=6e6efed86c491d6584a214f7a0871dc9a47b36a2;hp=82d63a16dd317bfeee17e42c8d426b2115c19f7f;hb=c1ab987e992c1c56ed9ea09426408f7b62ae5100;hpb=8b7faf1afa72d3b1dccfc6e888a6cf4d15d11a6f diff --git a/clvm_cmds.c b/clvm_cmds.c index 82d63a16..6e6efed8 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -189,7 +189,7 @@ static void VM_CL_sound (void) return; } - S_StartSound(32768 + PRVM_NUM_FOR_EDICT(entity), channel, S_FindName(sample), entity->fields.client->origin, volume, attenuation); + S_StartSound(MAX_EDICTS + PRVM_NUM_FOR_EDICT(entity), channel, S_FindName(sample), entity->fields.client->origin, volume, attenuation); } // #483 void(vector origin, string sample, float volume, float attenuation) pointsound @@ -219,8 +219,8 @@ static void VM_CL_pointsound(void) return; } - // Send World Entity as Entity to Play Sound (for CSQC, that is 32768) - S_StartSound(32768, 0, S_FindName(sample), org, volume, attenuation); + // Send World Entity as Entity to Play Sound (for CSQC, that is MAX_EDICTS) + S_StartSound(MAX_EDICTS, 0, S_FindName(sample), org, volume, attenuation); } // #14 entity() spawn @@ -3594,8 +3594,8 @@ static void VM_CL_checkpvs (void) #if 1 unsigned char *pvs; #else - static int fatpvsbytes; - static unsigned char fatpvs[MAX_MAP_LEAFS/8]; + int fatpvsbytes; + unsigned char fatpvs[MAX_MAP_LEAFS/8]; #endif VM_SAFEPARMCOUNT(2, VM_SV_checkpvs);