From: Wolfgang (Blub) Bumiller Date: Sat, 11 Aug 2012 17:34:58 +0000 (+0200) Subject: also generate _y and _z data for fieldpointers X-Git-Tag: 0.1-rc1~349^2~9 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bb1f38de5d36b0d7c4a0a9fa8743ae6ecd8a205b;p=xonotic%2Fgmqcc.git also generate _y and _z data for fieldpointers --- diff --git a/ir.c b/ir.c index 7ba97eb..74923c4 100644 --- a/ir.c +++ b/ir.c @@ -2150,10 +2150,18 @@ static bool gen_global_field(ir_value *global) /* copy the field's value */ ir_value_code_setaddr(global, code_globals_add(code_globals_data[fld->code.globaladdr])); + if (global->fieldtype == TYPE_VECTOR) { + code_globals_add(code_globals_data[fld->code.globaladdr]+1); + code_globals_add(code_globals_data[fld->code.globaladdr]+2); + } } else { ir_value_code_setaddr(global, code_globals_add(0)); + if (global->fieldtype == TYPE_VECTOR) { + code_globals_add(0); + code_globals_add(0); + } } if (global->code.globaladdr < 0) return false;