mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +00:00
Quaternions use quaternion_val, not vector_val :P
This commit is contained in:
parent
cbe245725b
commit
5f70e27613
1 changed files with 3 additions and 3 deletions
|
@ -527,11 +527,11 @@ do_op_quaternion (int op, expr_t *e, expr_t *e1, expr_t *e2)
|
|||
if (op == '/' && is_constant (e2) && e2->type == ex_float
|
||||
&& e2->e.float_val == 1)
|
||||
return e1;
|
||||
if (op == '+' && is_constant (e1) && QuatIsZero (e1->e.vector_val))
|
||||
if (op == '+' && is_constant (e1) && QuatIsZero (e1->e.quaternion_val))
|
||||
return e2;
|
||||
if (op == '+' && is_constant (e2) && QuatIsZero (e2->e.vector_val))
|
||||
if (op == '+' && is_constant (e2) && QuatIsZero (e2->e.quaternion_val))
|
||||
return e1;
|
||||
if (op == '-' && is_constant (e2) && QuatIsZero (e2->e.vector_val))
|
||||
if (op == '-' && is_constant (e2) && QuatIsZero (e2->e.quaternion_val))
|
||||
return e1;
|
||||
|
||||
if (op == '=' || op == 'b' || !is_constant (e1) || !is_constant (e2))
|
||||
|
|
Loading…
Reference in a new issue