From 94181f8895d3768c831c3ea7512b000b1ce17a6e Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 16 Oct 2004 14:05:46 +0000 Subject: [PATCH] And fixing the comma. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@347 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/qclib/qcc_pr_comp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/engine/qclib/qcc_pr_comp.c b/engine/qclib/qcc_pr_comp.c index a53b897c5..cff8946b0 100644 --- a/engine/qclib/qcc_pr_comp.c +++ b/engine/qclib/qcc_pr_comp.c @@ -6351,8 +6351,10 @@ void QCC_PR_ParseDefs (char *classname) QCC_PR_ParseError(ERR_NOTANUMBER, "enum - not a number"); } else + { v = pr_immediate._float; - QCC_PR_Lex(); + QCC_PR_Lex(); + } } def = QCC_PR_GetDef(type_float, name, pr_scope, true, 1); def->constant = true; @@ -6393,7 +6395,10 @@ void QCC_PR_ParseDefs (char *classname) QCC_PR_ParseError(ERR_NOTANUMBER, "enumflags - not a number"); } else + { v = pr_immediate._float; + QCC_PR_Lex(); + } bits = 0; i = (int)v; @@ -6410,7 +6415,6 @@ void QCC_PR_ParseDefs (char *classname) if (bits != 1) QCC_PR_ParseWarning(WARN_ENUMFLAGS_NOTBINARY, "enumflags - value %i not a single bit", (int)v); } - QCC_PR_Lex(); } def = QCC_PR_GetDef(type_float, name, pr_scope, true, 1); def->constant = true;