From: Wolfgang Bumiller Date: Sun, 23 Dec 2012 09:14:25 +0000 (+0100) Subject: Don't generate vector defs if the vector's name starts with a # because that's an... X-Git-Tag: 0.2^0 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=55117912abfdd387beef6a82a1281dcc18faa083;p=xonotic%2Fgmqcc.git Don't generate vector defs if the vector's name starts with a # because that's an 'IMMEDIATE' --- diff --git a/ir.c b/ir.c index 2ac7ff1..f858bb6 100644 --- 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;