From 5029fde3e1ebb5db248fc9ca0cbb9f2190c7dc91 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 11 Sep 2011 17:49:24 +0900 Subject: [PATCH] Fix the bogus frags on death. I'd missed some casts in the MSG_ReadShort change. --- nq/source/cl_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nq/source/cl_parse.c b/nq/source/cl_parse.c index b2d65bac0..6088860ec 100644 --- a/nq/source/cl_parse.c +++ b/nq/source/cl_parse.c @@ -764,7 +764,7 @@ CL_ParseClientdata (void) cl.viewent.lerpflags |= LERP_RESETANIM; } - i = MSG_ReadShort (net_message); + i = (short) MSG_ReadShort (net_message); if (cl.stats[STAT_HEALTH] != i) { cl.stats[STAT_HEALTH] = i; Sbar_Changed (); @@ -1151,7 +1151,7 @@ CL_ParseServerMessage (void) red = MSG_ReadByte (net_message) / 255.0; green = MSG_ReadByte (net_message) / 255.0; blue = MSG_ReadByte (net_message) / 255.0; - time = MSG_ReadShort (net_message) / 100.0; + time = (short) MSG_ReadShort (net_message) / 100.0; time = max (0.0, time); Fog_Update (density, red, green, blue, time); }