This new global float is part of Spike's CSQC definition, as it exists in his globals as well (albeit in a different order from DP's).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7495
d7cf8633-e32d-0410-b094-
e92efae38249
if(!cl.intermission)
cl.completed_time = cl.time;
cl.intermission = 1;
+ CL_VM_UpdateIntermissionState(cl.intermission);
break;
case svc_finale:
if(!cl.intermission)
cl.completed_time = cl.time;
cl.intermission = 2;
+ CL_VM_UpdateIntermissionState(cl.intermission);
SCR_CenterPrint(MSG_ReadString ());
break;
if(!cl.intermission)
cl.completed_time = cl.time;
cl.intermission = 3;
+ CL_VM_UpdateIntermissionState(cl.intermission);
SCR_CenterPrint(MSG_ReadString ());
break;
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 52195
+#define CL_PROGHEADER_CRC 49165
#endif
CSQC_END
}
+void CL_VM_UpdateIntermissionState (int intermission)
+{
+ 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.
+ CSQC_END
+ }
+}
+
float CL_VM_Event (float event) //[515]: needed ? I'd say "YES", but don't know for what :D
{
float r = 0;