Sign extend the size read from the download packet.

This fixes qw-client "hanging" on a missing download file. Hopefully fixes
the OpenBSD crash, too.
This commit is contained in:
Bill Currie 2011-12-10 21:37:32 +09:00
parent af16a29bfb
commit 0e76e1b9bf

View file

@ -566,7 +566,7 @@ CL_ParseDownload (void)
int size, percent;
// read the data
size = MSG_ReadShort (net_message);
size = (short) MSG_ReadShort (net_message);
percent = MSG_ReadByte (net_message);
if (cls.demoplayback) {