mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
remove some direct usages of pr.globals
This commit is contained in:
parent
e17604f9c2
commit
9474765e75
2 changed files with 2 additions and 2 deletions
|
@ -153,7 +153,7 @@ PR_GetDef (type_t *type, const char *name, def_t *scope, int *allocate)
|
|||
}
|
||||
|
||||
if (type->type == ev_field) {
|
||||
*(int *) &pr.globals[def->ofs] = pr.size_fields;
|
||||
G_INT (def->ofs) = pr.size_fields;
|
||||
|
||||
if (type->aux_type->type == ev_vector) {
|
||||
def_t *d;
|
||||
|
|
|
@ -225,7 +225,7 @@ WriteData (int crc)
|
|||
progs.ofs_globals = ftell (h);
|
||||
progs.numglobals = pr.num_globals;
|
||||
for (i = 0; i < pr.num_globals; i++)
|
||||
((int *) pr.globals)[i] = LittleLong (((int *) pr.globals)[i]);
|
||||
G_INT (i) = LittleLong (G_INT (i));
|
||||
SafeWrite (h, pr.globals, pr.num_globals * 4);
|
||||
|
||||
if (options.verbosity >= -1)
|
||||
|
|
Loading…
Reference in a new issue