From 1cea370869466ef5f4b57b4774a05bd848243728 Mon Sep 17 00:00:00 2001 From: In-line Date: Tue, 25 Jul 2017 14:45:03 +0400 Subject: [PATCH] Fix IsWhiteSpace (#434) --- rehlds/engine/tmessage.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rehlds/engine/tmessage.cpp b/rehlds/engine/tmessage.cpp index 17664c4..b4472c3 100644 --- a/rehlds/engine/tmessage.cpp +++ b/rehlds/engine/tmessage.cpp @@ -144,7 +144,11 @@ int IsEndOfText(char *pText) int IsWhiteSpace(char space) { +#ifdef REHLDS_FIXES + return isspace(space); +#else return space == ' ' || space == '\t' || space == '\r' || space == '\n'; +#endif } NOXREF const char *SkipSpace(const char *pText)