fixed bug at40706 (angle_vector)
This commit is contained in:
parent
0c668753fb
commit
f1d3274f0e
@ -141,13 +141,16 @@ static cell AMX_NATIVE_CALL angle_vector(AMX *amx, cell *params)
|
|||||||
{
|
{
|
||||||
case ANGLEVECTORS_FORWARD:
|
case ANGLEVECTORS_FORWARD:
|
||||||
v_return = v_forward;
|
v_return = v_forward;
|
||||||
|
break;
|
||||||
case ANGLEVECTORS_RIGHT:
|
case ANGLEVECTORS_RIGHT:
|
||||||
v_return = v_right;
|
v_return = v_right;
|
||||||
|
break;
|
||||||
case ANGLEVECTORS_UP:
|
case ANGLEVECTORS_UP:
|
||||||
v_return = v_up;
|
v_return = v_up;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
vCell = get_amxaddr(amx,params[3]);
|
vCell = get_amxaddr(amx, params[3]);
|
||||||
vCell[0] = FloatToCell(v_return.x);
|
vCell[0] = FloatToCell(v_return.x);
|
||||||
vCell[1] = FloatToCell(v_return.y);
|
vCell[1] = FloatToCell(v_return.y);
|
||||||
vCell[2] = FloatToCell(v_return.z);
|
vCell[2] = FloatToCell(v_return.z);
|
||||||
|
Loading…
Reference in New Issue
Block a user