mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
enum/enumflags fix
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1081 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
4b006a8412
commit
a488d6ae71
1 changed files with 4 additions and 6 deletions
|
@ -7255,9 +7255,8 @@ void QCC_PR_ParseDefs (char *classname)
|
|||
QCC_PR_Lex();
|
||||
}
|
||||
}
|
||||
def = QCC_PR_GetDef(type_float, name, pr_scope, true, 1);
|
||||
def->constant = true;
|
||||
G_FLOAT(def->ofs) = v;
|
||||
def = QCC_MakeFloatDef(v);
|
||||
pHash_Add(&globalstable, name, def, qccHunkAlloc(sizeof(bucket_t)));
|
||||
v++;
|
||||
|
||||
if (QCC_PR_CheckToken("}"))
|
||||
|
@ -7315,9 +7314,8 @@ void QCC_PR_ParseDefs (char *classname)
|
|||
QCC_PR_ParseWarning(WARN_ENUMFLAGS_NOTBINARY, "enumflags - value %i not a single bit", (int)v);
|
||||
}
|
||||
}
|
||||
def = QCC_PR_GetDef(type_float, name, pr_scope, true, 1);
|
||||
def->constant = true;
|
||||
G_FLOAT(def->ofs) = v;
|
||||
def = QCC_MakeFloatDef(v);
|
||||
pHash_Add(&globalstable, name, def, qccHunkAlloc(sizeof(bucket_t)));
|
||||
v*=2;
|
||||
|
||||
if (QCC_PR_CheckToken("}"))
|
||||
|
|
Loading…
Reference in a new issue