mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-24 03:02:31 +00:00
Fetch the def name only once when scanning
Not that speed is critical at this point, but it feels better.
This commit is contained in:
parent
f8b1a3a89f
commit
6c6433dea5
1 changed files with 3 additions and 2 deletions
|
@ -997,9 +997,10 @@ qfo_to_progs (qfo_t *qfo, int *size)
|
|||
|
||||
for (i = 0; i < qfo->spaces[qfo_near_data_space].num_defs; i++) {
|
||||
qfo_def_t *def = qfo->spaces[qfo_near_data_space].defs + i;
|
||||
if (!strcmp (QFO_GETSTR (qfo, def->name), ".type_encodings"))
|
||||
const char *defname = QFO_GETSTR (qfo, def->name);
|
||||
if (!strcmp (defname, ".type_encodings"))
|
||||
types_def = def;
|
||||
if (!strcmp (QFO_GETSTR (qfo, def->name), ".xdefs"))
|
||||
if (!strcmp (defname, ".xdefs"))
|
||||
xdefs_def = def;
|
||||
convert_def (qfo, def, globaldefs++);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue