mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
Hier war es keine gute idee die PARANOID checks zwingend
zu machen. Also raus damit.
This commit is contained in:
parent
2ab3f2d12c
commit
fc95927daa
1 changed files with 0 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue