mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
this seems to be all that's needed to make progs 64 bit clean (minus issues
with sizeof (int) != 4, but that's not the case on alpha)
This commit is contained in:
parent
1a99fe74ab
commit
cda6923ffa
1 changed files with 9 additions and 3 deletions
|
@ -1131,9 +1131,15 @@ PR_LoadProgsFile (progs_t * pr, const char *progsname)
|
||||||
pr->pr_globals =
|
pr->pr_globals =
|
||||||
(pr_type_t *) ((byte *) pr->progs + pr->progs->ofs_globals);
|
(pr_type_t *) ((byte *) pr->progs + pr->progs->ofs_globals);
|
||||||
|
|
||||||
pr->pr_edict_size =
|
// size of edict ascked for by progs
|
||||||
|
pr->pr_edict_size = pr->progs->entityfields * 4;
|
||||||
pr->progs->entityfields * 4 + sizeof (edict_t) - sizeof (pr_type_t);
|
// size of engine data
|
||||||
|
pr->pr_edict_size += sizeof (edict_t) - sizeof (pr_type_t);
|
||||||
|
// round off to next highest whole word address (esp for Alpha)
|
||||||
|
// this ensures that pointers in the engine data area are always
|
||||||
|
// properly aligned
|
||||||
|
pr->pr_edict_size += sizeof (void*) - 1;
|
||||||
|
pr->pr_edict_size &= ~(sizeof (void*) - 1);
|
||||||
|
|
||||||
pr->pr_edictareasize = 0;
|
pr->pr_edictareasize = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue