mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
vector components are floats, not vectors
This commit is contained in:
parent
d9cca87aff
commit
66e6e6329f
1 changed files with 4 additions and 0 deletions
4
ir.c
4
ir.c
|
@ -3158,6 +3158,8 @@ static void gen_vector_defs(prog_section_def def, const char *name)
|
|||
if (!name || OPTS_FLAG(SINGLE_VECTOR_DEFS))
|
||||
return;
|
||||
|
||||
def.type = TYPE_FLOAT;
|
||||
|
||||
len = strlen(name);
|
||||
|
||||
component = (char*)mem_a(len+3);
|
||||
|
@ -3184,6 +3186,8 @@ static void gen_vector_fields(prog_section_field fld, const char *name)
|
|||
if (!name || OPTS_FLAG(SINGLE_VECTOR_DEFS))
|
||||
return;
|
||||
|
||||
def.type = TYPE_FLOAT;
|
||||
|
||||
len = strlen(name);
|
||||
|
||||
component = (char*)mem_a(len+3);
|
||||
|
|
Loading…
Reference in a new issue