mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
Make sure those fields are initialised.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3849 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
8c17e200bb
commit
61752189ad
1 changed files with 7 additions and 6 deletions
|
@ -1394,6 +1394,7 @@ qboolean PR_LoadQ1QVM(void)
|
||||||
#define globalstring(required, name) pr_nqglobal_struct->name = (string_t*)((char*)VM_MemoryBase(q1qvm)+(qintptr_t)&gd->global->name)
|
#define globalstring(required, name) pr_nqglobal_struct->name = (string_t*)((char*)VM_MemoryBase(q1qvm)+(qintptr_t)&gd->global->name)
|
||||||
#define globalvec(required, name) pr_nqglobal_struct->V_##name = (vec3_t*)((char*)VM_MemoryBase(q1qvm)+(qintptr_t)&gd->global->name)
|
#define globalvec(required, name) pr_nqglobal_struct->V_##name = (vec3_t*)((char*)VM_MemoryBase(q1qvm)+(qintptr_t)&gd->global->name)
|
||||||
#define globalfunc(required, name) pr_nqglobal_struct->name = (int*)((char*)VM_MemoryBase(q1qvm)+(qintptr_t)&gd->global->name)
|
#define globalfunc(required, name) pr_nqglobal_struct->name = (int*)((char*)VM_MemoryBase(q1qvm)+(qintptr_t)&gd->global->name)
|
||||||
|
#define globalfloatnull(required, name) pr_nqglobal_struct->name = NULL
|
||||||
globalint (true, self); //we need the qw ones, but any in standard quake and not quakeworld, we don't really care about.
|
globalint (true, self); //we need the qw ones, but any in standard quake and not quakeworld, we don't really care about.
|
||||||
globalint (true, other);
|
globalint (true, other);
|
||||||
globalint (true, world);
|
globalint (true, world);
|
||||||
|
@ -1402,9 +1403,9 @@ qboolean PR_LoadQ1QVM(void)
|
||||||
globalint (false, newmis); //not always in nq.
|
globalint (false, newmis); //not always in nq.
|
||||||
globalfloat (false, force_retouch);
|
globalfloat (false, force_retouch);
|
||||||
globalstring (true, mapname);
|
globalstring (true, mapname);
|
||||||
// globalfloat (false, deathmatch);
|
globalfloatnull (false, deathmatch);
|
||||||
// globalfloat (false, coop);
|
globalfloatnull (false, coop);
|
||||||
// globalfloat (false, teamplay);
|
globalfloatnull (false, teamplay);
|
||||||
globalfloat (true, serverflags);
|
globalfloat (true, serverflags);
|
||||||
globalfloat (true, total_secrets);
|
globalfloat (true, total_secrets);
|
||||||
globalfloat (true, total_monsters);
|
globalfloat (true, total_monsters);
|
||||||
|
@ -1422,9 +1423,9 @@ qboolean PR_LoadQ1QVM(void)
|
||||||
globalint (true, trace_ent);
|
globalint (true, trace_ent);
|
||||||
globalfloat (true, trace_inopen);
|
globalfloat (true, trace_inopen);
|
||||||
globalfloat (true, trace_inwater);
|
globalfloat (true, trace_inwater);
|
||||||
// globalfloat (false, trace_endcontents);
|
globalfloatnull (false, trace_endcontents);
|
||||||
// globalfloat (false, trace_surfaceflags);
|
globalfloatnull (false, trace_surfaceflags);
|
||||||
// globalfloat (false, cycle_wrapped);
|
globalfloatnull (false, cycle_wrapped);
|
||||||
globalint (false, msg_entity);
|
globalint (false, msg_entity);
|
||||||
globalfunc (false, main);
|
globalfunc (false, main);
|
||||||
globalfunc (true, StartFrame);
|
globalfunc (true, StartFrame);
|
||||||
|
|
Loading…
Reference in a new issue