]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_cmds.h
optimized vm by using cached local variables instead of accessing prog->
[xonotic/darkplaces.git] / prvm_cmds.h
index 39ec49619e2e3f50e09f182d2beee2d89b6d0d9e..e21a393f6e0860b0a5a3e8b8a6660719ad2028e3 100644 (file)
@@ -210,7 +210,7 @@ float       getserverlistindexforkey(string key)
 #define VM_SAFEPARMCOUNT(p,f)
 #endif
 
-#define        VM_RETURN_EDICT(e)              (((int *)prog->globals.generic)[OFS_RETURN] = PRVM_EDICT_TO_PROG(e))
+#define        VM_RETURN_EDICT(e)              (prog->globals.ip[OFS_RETURN] = PRVM_EDICT_TO_PROG(e))
 
 #define VM_STRINGTEMP_LENGTH MAX_INPUTLINE