From 46093c093776eac8f95f853c91787baad4ad0cf1 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 21 Mar 2011 17:26:49 +0900 Subject: [PATCH] Use the correct meta type for spacial types. Although vector and quaternion types have symbol tables, they are not really structs, so set the meta type to "none", allowing the types to be encoded correctly. --- tools/qfcc/source/type.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/qfcc/source/type.c b/tools/qfcc/source/type.c index 9d69bcd33..0e30ad0c8 100644 --- a/tools/qfcc/source/type.c +++ b/tools/qfcc/source/type.c @@ -846,12 +846,14 @@ init_types (void) make_structure (0, 'u', param_struct, &type_param); make_structure (0, 's', vector_struct, &type_vector); type_vector.type = ev_vector; + type_vector.ty = ty_none; if (options.traditional) return; make_structure (0, 's', quaternion_struct, &type_quaternion); type_quaternion.type = ev_quat; + type_quaternion.ty = ty_none; } void