From 66d04f8defa40191dca901d302ce7422af613b8c Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 10 Jun 2006 21:00:33 +0000 Subject: [PATCH] fixed another possible amx_ftoc() misusage --- amxmodx/amxmodx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index e8fc614c..fe49a8db 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -1827,7 +1827,7 @@ static cell AMX_NATIVE_CALL read_data(AMX *amx, cell *params) /* 3 param */ return set_amxstring(amx, params[2], g_events.getArgString(params[1]), *get_amxaddr(amx, params[3])); default: cell *fCell = get_amxaddr(amx, params[2]); - float fparam = g_events.getArgFloat(params[1]); + REAL fparam = (REAL)g_events.getArgFloat(params[1]); fCell[0] = amx_ftoc(fparam); return (int)fparam; } @@ -2003,7 +2003,7 @@ static cell AMX_NATIVE_CALL get_maxplayers(AMX *amx, cell *params) static cell AMX_NATIVE_CALL get_gametime(AMX *amx, cell *params) { - REAL pFloat = gpGlobals->time; + REAL pFloat = (REAL)gpGlobals->time; return amx_ftoc(pFloat); }