]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_cmds.c
another attempt at fixing the Mac OSX rotating hud problem
[xonotic/darkplaces.git] / prvm_cmds.c
index 0fde71812850062ce879be6672a94be9ce39388e..367fe96bab210e070d503d4f768406857cd5e104 100644 (file)
@@ -668,6 +668,19 @@ void VM_ftoe(void)
        PRVM_G_INT(OFS_RETURN) = ent;
 }
 
+/*
+========================
+VM_etof
+
+float etof(entity ent)
+========================
+*/
+void VM_etof(void)
+{
+       VM_SAFEPARMCOUNT(1, VM_etof);
+       PRVM_G_FLOAT(OFS_RETURN) = PRVM_G_EDICTNUM(OFS_PARM0);
+}
+
 /*
 =========
 VM_strftime