mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
64 bit compatibility effort, 3/nn:
pr_edict.c (type_size): make it 1, not sizeof(void*)/4, because quake progs is strictly 32 bits where sizeof(void*) is 4. git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@35 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
9c837a77ae
commit
b736e5de36
1 changed files with 10 additions and 1 deletions
|
@ -36,7 +36,16 @@ int pr_edict_size; // in bytes
|
|||
|
||||
unsigned short pr_crc;
|
||||
|
||||
int type_size[8] = {1,sizeof(string_t)/4,1,3,1,1,sizeof(func_t)/4,sizeof(void *)/4};
|
||||
int type_size[8] = {
|
||||
1, // ev_void
|
||||
1, // sizeof(string_t) / 4 // ev_string
|
||||
1, // ev_float
|
||||
3, // ev_vector
|
||||
1, // ev_entity
|
||||
1, // ev_field
|
||||
1, // sizeof(func_t) / 4 // ev_function
|
||||
1 // sizeof(void *) / 4 // ev_pointer
|
||||
};
|
||||
|
||||
ddef_t *ED_FieldAtOfs (int ofs);
|
||||
qboolean ED_ParseEpair (void *base, ddef_t *key, char *s);
|
||||
|
|
Loading…
Reference in a new issue