void QW_CL_StartUpload(unsigned char *data, int size);
//static qboolean QW_CL_IsUploading(void);
static void QW_CL_StopUpload(void);
+void CL_VM_UpdateIntermissionState(int intermission);
/*
==================
float maxclients;
float clientcommandframe;
float servercommandframe;
- float intermission;
string_t mapname;
vec3_t v_forward;
vec3_t v_up;
int owner;
} cl_entvars_t;
-#define CL_PROGHEADER_CRC 49165
+#define CL_PROGHEADER_CRC 52195
#endif
void CL_VM_UpdateIntermissionState (int intermission)
{
+ prvm_eval_t *val;
if(cl.csqc_loaded)
{
CSQC_BEGIN
- prog->globals.client->intermission = intermission; // Dresk : This global is required and part of the CRC verification, so no check is required for it.
+ val = PRVM_GLOBALFIELDVALUE(prog->globaloffsets.intermission);
+ if(val)
+ val->_float = intermission;
CSQC_END
}
}
int trace_dphitq3surfaceflags; // ssqc / csqc
int trace_dphittexturename; // ssqc / csqc
int trace_dpstartcontents; // ssqc / csqc
+ int intermission; // csqc
}
prvm_prog_globaloffsets_t;
prog->globaloffsets.trace_dphitq3surfaceflags = PRVM_ED_FindGlobalOffset("trace_dphitq3surfaceflags");
prog->globaloffsets.trace_dphittexturename = PRVM_ED_FindGlobalOffset("trace_dphittexturename");
prog->globaloffsets.trace_dpstartcontents = PRVM_ED_FindGlobalOffset("trace_dpstartcontents");
+ prog->globaloffsets.intermission = PRVM_ED_FindGlobalOffset("intermission");
// menu qc only uses some functions, nothing else
prog->funcoffsets.m_display = PRVM_ED_FindFunctionOffset("m_display");