mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
Fix the bogus frags on death.
I'd missed some casts in the MSG_ReadShort change.
This commit is contained in:
parent
3de5575def
commit
5029fde3e1
1 changed files with 2 additions and 2 deletions
|
@ -764,7 +764,7 @@ CL_ParseClientdata (void)
|
||||||
cl.viewent.lerpflags |= LERP_RESETANIM;
|
cl.viewent.lerpflags |= LERP_RESETANIM;
|
||||||
}
|
}
|
||||||
|
|
||||||
i = MSG_ReadShort (net_message);
|
i = (short) MSG_ReadShort (net_message);
|
||||||
if (cl.stats[STAT_HEALTH] != i) {
|
if (cl.stats[STAT_HEALTH] != i) {
|
||||||
cl.stats[STAT_HEALTH] = i;
|
cl.stats[STAT_HEALTH] = i;
|
||||||
Sbar_Changed ();
|
Sbar_Changed ();
|
||||||
|
@ -1151,7 +1151,7 @@ CL_ParseServerMessage (void)
|
||||||
red = MSG_ReadByte (net_message) / 255.0;
|
red = MSG_ReadByte (net_message) / 255.0;
|
||||||
green = MSG_ReadByte (net_message) / 255.0;
|
green = MSG_ReadByte (net_message) / 255.0;
|
||||||
blue = 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);
|
time = max (0.0, time);
|
||||||
Fog_Update (density, red, green, blue, time);
|
Fog_Update (density, red, green, blue, time);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue