]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - view.c
major overhaul for thread-safety - many global variables and static
[xonotic/darkplaces.git] / view.c
diff --git a/view.c b/view.c
index 3e0ccc57ebbf17154f9e4e8dd536fdc818222de5..8afabbee0365ae639b6d9de19eb2b97a19caf573 100644 (file)
--- a/view.c
+++ b/view.c
@@ -23,8 +23,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include "cl_collision.h"
 #include "image.h"
 
-void CL_VM_UpdateDmgGlobals (int dmg_take, int dmg_save, vec3_t dmg_origin);
-
 /*
 
 The view is allowed to move slightly from it's true position for bobbing,
@@ -260,9 +258,9 @@ void V_ParseDamage (void)
        //float side;
        float count;
 
-       armor = MSG_ReadByte ();
-       blood = MSG_ReadByte ();
-       MSG_ReadVector(from, cls.protocol);
+       armor = MSG_ReadByte(&cl_message);
+       blood = MSG_ReadByte(&cl_message);
+       MSG_ReadVector(&cl_message, from, cls.protocol);
 
        // Send the Dmg Globals to CSQC
        CL_VM_UpdateDmgGlobals(blood, armor, from);