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:
TimeServ 2005-06-07 04:55:36 +00:00
parent 4b006a8412
commit a488d6ae71

View file

@ -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("}"))