From: Wolfgang (Blub) Bumiller Date: Fri, 30 Nov 2012 14:44:45 +0000 (+0100) Subject: Ignore modelgen commands with lex->flags.preprocessing X-Git-Tag: 0.1.9~171 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f1a36ca6476e1a67d96d48ea7d9dcdc9f8c6f1d1;p=xonotic%2Fgmqcc.git Ignore modelgen commands with lex->flags.preprocessing --- diff --git a/lexer.c b/lexer.c index 258fb97..5c9b7ee 100644 --- a/lexer.c +++ b/lexer.c @@ -969,7 +969,7 @@ int lex_do(lex_file *lex) } /* modelgen / spiritgen commands */ - if (ch == '$') { + if (ch == '$' && !lex->flags.preprocessing) { const char *v; size_t frame;