And fixing the comma.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@347 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-10-16 14:05:46 +00:00
parent 4c60d97a27
commit 94181f8895

View file

@ -6351,9 +6351,11 @@ void QCC_PR_ParseDefs (char *classname)
QCC_PR_ParseError(ERR_NOTANUMBER, "enum - not a number"); QCC_PR_ParseError(ERR_NOTANUMBER, "enum - not a number");
} }
else else
{
v = pr_immediate._float; v = pr_immediate._float;
QCC_PR_Lex(); QCC_PR_Lex();
} }
}
def = QCC_PR_GetDef(type_float, name, pr_scope, true, 1); def = QCC_PR_GetDef(type_float, name, pr_scope, true, 1);
def->constant = true; def->constant = true;
G_FLOAT(def->ofs) = v; G_FLOAT(def->ofs) = v;
@ -6393,7 +6395,10 @@ void QCC_PR_ParseDefs (char *classname)
QCC_PR_ParseError(ERR_NOTANUMBER, "enumflags - not a number"); QCC_PR_ParseError(ERR_NOTANUMBER, "enumflags - not a number");
} }
else else
{
v = pr_immediate._float; v = pr_immediate._float;
QCC_PR_Lex();
}
bits = 0; bits = 0;
i = (int)v; i = (int)v;
@ -6410,7 +6415,6 @@ void QCC_PR_ParseDefs (char *classname)
if (bits != 1) if (bits != 1)
QCC_PR_ParseWarning(WARN_ENUMFLAGS_NOTBINARY, "enumflags - value %i not a single bit", (int)v); 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 = QCC_PR_GetDef(type_float, name, pr_scope, true, 1);
def->constant = true; def->constant = true;