mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 14:21:36 +00:00
also generate _y and _z data for fieldpointers
This commit is contained in:
parent
228b3cca41
commit
bb1f38de5d
1 changed files with 8 additions and 0 deletions
8
ir.c
8
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;
|
||||
|
|
Loading…
Reference in a new issue