Skip to content

Commit

Permalink
COM_ParseLine: Turn on preprocessor REHLDS_FIXES. Related #67
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Sep 5, 2019
1 parent 4e4690b commit 262f443
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rehlds/engine/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ char *COM_Parse(char *data)

char *COM_ParseLine(char *data)
{
#ifndef REHLDS_FIXES
#ifdef REHLDS_FIXES
unsigned int c;
#else
int c;
Expand All @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit 262f443

Please sign in to comment.