]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - svvm_cmds.c
added prvm_offsets.h which centralizes field/global/function lookups for
[xonotic/darkplaces.git] / svvm_cmds.c
index f2028c475968ac54a3dae0bfa13accaa8ff3abd4..fc7feddee325e56c5ef490394840c1e5d2646a78 100644 (file)
@@ -3767,10 +3767,10 @@ void VM_SV_Cmd_Init(void)
 void VM_SV_Cmd_Reset(void)
 {
        World_End(&sv.world);
-       if(prog->funcoffsets.SV_Shutdown)
+       if(PRVM_serverfunction(SV_Shutdown))
        {
-               func_t s = prog->funcoffsets.SV_Shutdown;
-               prog->funcoffsets.SV_Shutdown = 0; // prevent it from getting called again
+               func_t s = PRVM_serverfunction(SV_Shutdown);
+               PRVM_serverfunction(SV_Shutdown) = 0; // prevent it from getting called again
                PRVM_ExecuteProgram(s,"SV_Shutdown() required");
        }