L4D2Tools: Remove precache things

This commit is contained in:
Jackzie 2021-05-14 19:01:12 -05:00
parent a1b1901a31
commit a3a85ee5b5
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
2 changed files with 1 additions and 6 deletions

Binary file not shown.

View file

@ -182,12 +182,7 @@ public Action Command_PlaySound(int client, int args) {
target = target_list[i]; target = target_list[i];
StopSound(target, 0, lastSound[target]); StopSound(target, 0, lastSound[target]);
} }
char precache[128]; PrecacheSound(arg2);
Format(precache, sizeof(precache), "sound/%s", arg2);
bool result = PrecacheSound(arg2);
if(!result) {
ReplyToCommand(client, "Warn: Precache failed '%s'", precache);
}
for (int i = 0; i < target_count; i++) { for (int i = 0; i < target_count; i++) {
target = target_list[i]; target = target_list[i];
if(IsClientConnected(target) && IsClientInGame(target)) { if(IsClientConnected(target) && IsClientInGame(target)) {