]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Don't generate vector defs if the vector's name starts with a # because that's an... 0.2
authorWolfgang Bumiller <blub@speed.at>
Sun, 23 Dec 2012 09:14:25 +0000 (10:14 +0100)
committerWolfgang Bumiller <blub@speed.at>
Sun, 23 Dec 2012 09:14:25 +0000 (10:14 +0100)
ir.c

diff --git a/ir.c b/ir.c
index 2ac7ff1bdc7500a5090785b45206dc8edf13af71..f858bb6e9a535a63eb6233cbcac334e20af3989c 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -3185,7 +3185,7 @@ static void gen_vector_defs(prog_section_def def, const char *name)
     char  *component;
     size_t len, i;
 
-    if (!name || OPTS_FLAG(SINGLE_VECTOR_DEFS))
+    if (!name || name[0] == '#' || OPTS_FLAG(SINGLE_VECTOR_DEFS))
         return;
 
     def.type = TYPE_FLOAT;