mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
handle unimplemented classes a little better (will do for now till I sort
out some sort of resolution for them)
This commit is contained in:
parent
b1d1159ae2
commit
2e8c18f8b6
1 changed files with 5 additions and 1 deletions
|
@ -330,10 +330,14 @@ class_def (class_t *class)
|
|||
def = PR_GetDef (class->type,
|
||||
va ("_OBJ_CLASS_POINTER_%s", class->class_name),
|
||||
0, &numpr_globals);
|
||||
if (def->initialized)
|
||||
return def;
|
||||
if (class->def) { //FIXME need externals?
|
||||
def->initialized = def->constant = 1;
|
||||
G_INT (def->ofs) = class->def->ofs;
|
||||
} else {
|
||||
warning (0, "%s not implemented", class->class_name);
|
||||
}
|
||||
def->initialized = def->constant = 1;
|
||||
return def;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue