From: Thomas Debesse Date: Mon, 11 Feb 2019 23:01:38 +0000 (+0100) Subject: Garux: disable stringio qnan fallback because of mistake X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=63e2954e945ec2210d1759d8933186c6caa1dbf9;p=xonotic%2Fnetradiant.git Garux: disable stringio qnan fallback because of mistake --- diff --git a/libs/stringio.h b/libs/stringio.h index d7099f59..7d192a2a 100644 --- a/libs/stringio.h +++ b/libs/stringio.h @@ -232,12 +232,15 @@ inline bool Tokeniser_getFloat( Tokeniser& tokeniser, float& f ){ if ( token != 0 && string_parse_float( token, f ) ) { return true; } + #define DISABLE_QNAN_FALLBACK + #ifndef DISABLE_QNAN_FALLBACK //fallback for 1.#IND 1.#INF 1.#QNAN cases, happening sometimes after rotating & often scaling with tex lock in BP mode else if ( token != 0 && strstr( token, ".#" ) ) { globalErrorStream() << "Warning: " << Unsigned( tokeniser.getLine() ) << ":" << Unsigned( tokeniser.getColumn() ) << ": expected parse problem at '" << token << "': wanted '#number'\nProcessing anyway\n"; *strstr( token, ".#" ) = '\0'; return true; } + #endif Tokeniser_unexpectedError( tokeniser, token, "#number" ); return false; }