From bce69e71160f6d4807a730546e297a03c5eb26c1 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 10 Jun 2006 20:57:52 +0000 Subject: [PATCH] fixed pcvar bug (thanks niluje) --- amxmodx/amxmodx.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index 24fd7fa1..e8fc614c 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -1556,7 +1556,9 @@ static cell AMX_NATIVE_CALL get_pcvar_float(AMX *amx, cell *params) return 0; } - return amx_ftoc(ptr->value); + REAL val = (REAL)ptr->value; + + return amx_ftoc(val); } static cell AMX_NATIVE_CALL get_cvar_float(AMX *amx, cell *params) /* 1 param */