From fc95927daaefbfde40f7dfd87cf20e3a2da82b3c Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Wed, 4 Mar 2009 08:54:06 +0000 Subject: [PATCH] Hier war es keine gute idee die PARANOID checks zwingend zu machen. Also raus damit. --- src/common/common.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/common/common.c b/src/common/common.c index c3f24487..423a4143 100644 --- a/src/common/common.c +++ b/src/common/common.c @@ -311,9 +311,6 @@ void MSG_WriteChar (sizebuf_t *sb, int c) { byte *buf; - if (c < -128 || c > 127) - Com_Error (ERR_FATAL, "MSG_WriteChar: range error"); - buf = SZ_GetSpace (sb, 1); buf[0] = c; } @@ -322,9 +319,6 @@ void MSG_WriteByte (sizebuf_t *sb, int c) { byte *buf; - if (c < 0 || c > 255) - Com_Error (ERR_FATAL, "MSG_WriteByte: range error"); - buf = SZ_GetSpace (sb, 1); buf[0] = c; } @@ -332,9 +326,6 @@ void MSG_WriteByte (sizebuf_t *sb, int c) void MSG_WriteShort (sizebuf_t *sb, int c) { byte *buf; - - if (c < ((short)0x8000) || c > (short)0x7fff) - Com_Error (ERR_FATAL, "MSG_WriteShort: range error"); buf = SZ_GetSpace (sb, 2); buf[0] = c&0xff;