From 0b3d0011c5ba9d207c9d6e09adff884a521562ba Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 7 Mar 2011 10:02:20 +0900 Subject: [PATCH] Implement vector and quaternion component access. --- tools/qfcc/source/expr.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index adbf8cdeb..76fd3de6e 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -931,11 +931,8 @@ field_expr (expr_t *e1, expr_t *e2) e->e.expr.type = pointer_type (ivar->type); return unary_expr ('.', e); } - } else if (t1->type == ev_vector) { - } else if (t1->type == ev_quat) { - } else if (is_struct (t1)) { - symtab_t *strct = t1->t.symtab; - symbol_t *sym = e2->e.symbol;//FIXME need to check + } else if (t1->type == ev_vector || t1->type == ev_quat + || is_struct (t1)) { symbol_t *field; field = get_struct_field (t1, e1, e2);