]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - svvm_cmds.c
edu2p game: change 2nd game dir to 'edu2'
[xonotic/darkplaces.git] / svvm_cmds.c
index 45e5adccd0f4a2fdbdb4c9d7de7a93cc5fb5714d..4a0dae564bbf61370f3851968ffca03297ea0154 100644 (file)
@@ -147,6 +147,8 @@ char *vm_sv_extensions =
 "FTE_STRINGS "
 "DP_CON_BESTWEAPON "
 "DP_QC_STRREPLACE "
+"DP_QC_CRC16 "
+"DP_SV_SHUTDOWN "
 ;
 
 /*
@@ -3303,7 +3305,7 @@ NULL,                                                     // #490
 NULL,                                                  // #491
 NULL,                                                  // #492
 NULL,                                                  // #493
-NULL,                                                  // #494
+VM_crc16,                                              // #494 float(float caseinsensitive, string s, ...) crc16 = #494 (DP_QC_CRC16)
 NULL,                                                  // #495
 NULL,                                                  // #496
 NULL,                                                  // #497
@@ -3320,6 +3322,13 @@ void VM_SV_Cmd_Init(void)
 
 void VM_SV_Cmd_Reset(void)
 {
+       if(prog->funcoffsets.SV_Shutdown)
+       {
+               func_t s = prog->funcoffsets.SV_Shutdown;
+               prog->funcoffsets.SV_Shutdown = 0; // prevent it from getting called again
+               PRVM_ExecuteProgram(s,"SV_Shutdown() required");
+       }
+
        VM_Cmd_Reset();
 }