From 1a2439bf380f0607de68475e952a68559ce7fc21 Mon Sep 17 00:00:00 2001 From: Sam Tupy Date: Fri, 14 Jun 2024 09:49:52 -0500 Subject: [PATCH] bgt_compat's string_to_number function now trims whitespace to comply with bgt's standard, our new faster parse_float doesn't do that anymore in the name of performance --- release/include/bgt_compat.nvgt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/include/bgt_compat.nvgt b/release/include/bgt_compat.nvgt index 3654db78..6477cc6a 100644 --- a/release/include/bgt_compat.nvgt +++ b/release/include/bgt_compat.nvgt @@ -83,7 +83,7 @@ string get_last_error_text() { return ""; } shared double string_to_number(const string& in num) { - return parse_float(num); + return parse_float(num.trim_whitespace_left()); } bool show_game_window(const string& in title) { return show_window(title);