Work-around for a code generation bug in GCC

This commit is contained in:
David Anderson 2006-08-17 00:23:03 +00:00
parent a03cd1385d
commit 6295813723

View File

@ -2595,10 +2595,8 @@ static cell AMX_NATIVE_CALL get_user_aiming(AMX *amx, cell *params) /* 4 param *
CPlayer* pPlayer = GET_PLAYER_POINTER_I(index);
cell *cpId = get_amxaddr(amx, params[2]);
cell *cpBody = get_amxaddr(amx, params[3]);
cell fCell;
REAL *pFloat = (REAL *)((void *)&fCell);
*pFloat = 0.0;
REAL pfloat = 0.0f;
if (pPlayer->ingame)
{
@ -2617,17 +2615,14 @@ static cell AMX_NATIVE_CALL get_user_aiming(AMX *amx, cell *params) /* 4 param *
if (trEnd.flFraction < 1.0)
{
*pFloat = (trEnd.vecEndPos - v_src).Length();
return fCell;
} else {
return fCell;
pfloat = (trEnd.vecEndPos - v_src).Length();
}
}
*cpId = 0;
*cpBody = 0;
return fCell;
return amx_ftoc(pfloat);
}
static cell AMX_NATIVE_CALL remove_cvar_flags(AMX *amx, cell *params)