]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Ignore modelgen commands with lex->flags.preprocessing
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 30 Nov 2012 14:44:45 +0000 (15:44 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 30 Nov 2012 14:44:45 +0000 (15:44 +0100)
lexer.c

diff --git a/lexer.c b/lexer.c
index 258fb97a9605eac6efc9ad11103f47b4dc75cb67..5c9b7ee6d145077acf25c24730a5e253be3631bd 100644 (file)
--- 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;