From 262f443404f6427cb4229677f875e9a1772301c5 Mon Sep 17 00:00:00 2001 From: s1lent Date: Fri, 6 Sep 2019 00:03:18 +0700 Subject: [PATCH] COM_ParseLine: Turn on preprocessor REHLDS_FIXES. Related #67 --- rehlds/engine/common.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rehlds/engine/common.cpp b/rehlds/engine/common.cpp index 3bfc2d9..c68a11c 100644 --- a/rehlds/engine/common.cpp +++ b/rehlds/engine/common.cpp @@ -1571,7 +1571,7 @@ inquotes: char *COM_ParseLine(char *data) { -#ifndef REHLDS_FIXES +#ifdef REHLDS_FIXES unsigned int c; #else int c; @@ -1595,7 +1595,7 @@ char *COM_ParseLine(char *data) c = *data; // parse a line out of the data -#ifndef REHLDS_FIXES +#ifdef REHLDS_FIXES while ((c >= ' ' || c == '\t') && (len < COM_TOKEN_LEN - 1)) { com_token[len] = c; @@ -1620,7 +1620,7 @@ char *COM_ParseLine(char *data) return NULL; } - // eat whitespace (LF,CR,etc.) at the end of this line + // skip end of the line (CR, LF, etc.., but not TAB) while ((c = *data) < ' ' && c != '\t') { if (c == 0)