Skip to content

Commit

Permalink
bgt_compat's string_to_number function now trims whitespace to comply…
Browse files Browse the repository at this point in the history
… with bgt's standard, our new faster parse_float doesn't do that anymore in the name of performance
  • Loading branch information
samtupy committed Jun 14, 2024
1 parent 6a5ecbf commit 1a2439b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release/include/bgt_compat.nvgt
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1a2439b

Please sign in to comment.