From 0688e3a197d88d78669a259841eb10886a7a623c Mon Sep 17 00:00:00 2001 From: Adam Olsen Date: Thu, 29 Nov 2001 06:54:38 +0000 Subject: [PATCH] - cast cls.qport to (unsigned short) when passing to networking, so it doesn't trigger PARANOID in msg.c --- qw/source/net_chan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qw/source/net_chan.c b/qw/source/net_chan.c index 5ebe64adc..250e23fd1 100644 --- a/qw/source/net_chan.c +++ b/qw/source/net_chan.c @@ -287,7 +287,7 @@ Netchan_Transmit (netchan_t *chan, int length, byte * data) // send the qport if we are a client if (!is_server) - MSG_WriteShort (&send, cls.qport); + MSG_WriteShort (&send, (unsigned short) cls.qport); // copy the reliable message to the packet first if (send_reliable) {