From 0b6b794f791a9bc803cb5d0e846e88e10441e70b Mon Sep 17 00:00:00 2001 From: WPMGPRoSToTeMa Date: Tue, 2 Feb 2016 06:57:03 +0300 Subject: [PATCH] Fixed commands with unicode (#152) --- rehlds/engine/cmd.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rehlds/engine/cmd.cpp b/rehlds/engine/cmd.cpp index 518eea6..46b1b16 100644 --- a/rehlds/engine/cmd.cpp +++ b/rehlds/engine/cmd.cpp @@ -627,7 +627,11 @@ void EXT_FUNC Cmd_TokenizeString(char *text) while (true) { // Skip whitespace up to a \n +#ifdef REHLDS_FIXES + while (*text && (uint8_t)*text <= ' ' && *text != '\n') +#else // REHLDS_FIXES while (*text && *text <= ' ' && *text != '\n') +#endif // REHLDS_FIXES { ++text; }