From 5309189602fba914312065a73d58bfcd6ba8bb27 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Fri, 4 May 2007 01:38:30 +0000 Subject: [PATCH] Implemented amb245 - precache_sound() now returns whatever the engine function returns instead of just returning 1 --- amxmodx/amxmodx.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index 941a5724..0b518646 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -2702,9 +2702,7 @@ static cell AMX_NATIVE_CALL precache_sound(AMX *amx, cell *params) /* 1 param */ int len; char* sptemp = get_amxstring(amx, params[1], 0, len); - PRECACHE_SOUND((char*)STRING(ALLOC_STRING(sptemp))); - - return 1; + return PRECACHE_SOUND((char*)STRING(ALLOC_STRING(sptemp))); } static cell AMX_NATIVE_CALL precache_model(AMX *amx, cell *params) /* 1 param */