projects
/
xonotic
/
gmqcc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa7dce4
)
don't generate storep for vector field unless it's an ent field
author
Dale Weiler <weilercdale@gmail.com>
Sun, 26 Nov 2017 22:47:27 +0000
(17:47 -0500)
committer
Dale Weiler <weilercdale@gmail.com>
Sun, 26 Nov 2017 22:47:27 +0000
(17:47 -0500)
parser.cpp
patch
|
blob
|
history
diff --git
a/parser.cpp
b/parser.cpp
index 0560849e35719956c4f8f6c86bf05fdf319461a9..63e49d056969f4b3360f697050722c67241f34a9 100644
(file)
--- a/
parser.cpp
+++ b/
parser.cpp
@@
-296,7
+296,11
@@
static bool rotate_entfield_array_index_nodes(ast_expression **out)
static int store_op_for(ast_expression* expr)
{
if (OPTS_FLAG(ADJUST_VECTOR_FIELDS) && expr->m_vtype == TYPE_FIELD && expr->m_next->m_vtype == TYPE_VECTOR) {
- return type_storep_instr[TYPE_VECTOR];
+ if (ast_istype(expr, ast_entfield)) {
+ return type_storep_instr[TYPE_VECTOR];
+ } else {
+ return type_store_instr[TYPE_VECTOR];
+ }
}
if (ast_istype(expr, ast_member) && ast_istype(((ast_member*)expr)->m_owner, ast_entfield)) {