From 45443a165147859f83df37223572cdd40df476b4 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 13 Jun 2016 10:58:32 -0300 Subject: Changed reload logic to auto-hard-reload scripts on save. It's simpler to use and also fixes #4756 --- core/variant_parser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/variant_parser.cpp') diff --git a/core/variant_parser.cpp b/core/variant_parser.cpp index 2e7a9c0bb..875a144fe 100644 --- a/core/variant_parser.cpp +++ b/core/variant_parser.cpp @@ -1791,8 +1791,9 @@ Error VariantParser::parse(Stream *p_stream, Variant& r_ret, String &r_err_str, static String rtosfix(double p_value) { + if (p_value==0.0) - return "0"; //avoid negative zero being written, which may annoy git, svn, etc. for changes when they don't exist. + return "0"; //avoid negative zero (-0) being written, which may annoy git, svn, etc. for changes when they don't exist. else return rtoss(p_value); } -- cgit v1.2.3-70-g09d2