Work-around for a code generation bug in GCC
This commit is contained in:
parent
a03cd1385d
commit
6295813723
|
@ -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);
|
CPlayer* pPlayer = GET_PLAYER_POINTER_I(index);
|
||||||
cell *cpId = get_amxaddr(amx, params[2]);
|
cell *cpId = get_amxaddr(amx, params[2]);
|
||||||
cell *cpBody = get_amxaddr(amx, params[3]);
|
cell *cpBody = get_amxaddr(amx, params[3]);
|
||||||
cell fCell;
|
|
||||||
|
|
||||||
REAL *pFloat = (REAL *)((void *)&fCell);
|
REAL pfloat = 0.0f;
|
||||||
*pFloat = 0.0;
|
|
||||||
|
|
||||||
if (pPlayer->ingame)
|
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)
|
if (trEnd.flFraction < 1.0)
|
||||||
{
|
{
|
||||||
*pFloat = (trEnd.vecEndPos - v_src).Length();
|
pfloat = (trEnd.vecEndPos - v_src).Length();
|
||||||
return fCell;
|
|
||||||
} else {
|
|
||||||
return fCell;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
*cpId = 0;
|
*cpId = 0;
|
||||||
*cpBody = 0;
|
*cpBody = 0;
|
||||||
|
|
||||||
return fCell;
|
return amx_ftoc(pfloat);
|
||||||
}
|
}
|
||||||
|
|
||||||
static cell AMX_NATIVE_CALL remove_cvar_flags(AMX *amx, cell *params)
|
static cell AMX_NATIVE_CALL remove_cvar_flags(AMX *amx, cell *params)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user