1
0
Fork 0

debug.dump(): print empty strings as hash key correctly

This commit is contained in:
mfranz 2008-10-25 14:20:47 +00:00
parent 6371627424
commit f7bd13fed3
2 changed files with 2 additions and 1 deletions

View file

@ -177,6 +177,8 @@ var _dump_string = func(str) {
# dump hash keys as variables if they are valid variable names, or as string otherwise
var _dump_key = func(s) {
if (!size(s))
return _dump_string(s);
if (num(s) != nil)
return _num(s);
if (!globals.string.isalpha(s[0]) and s[0] != `_`)

View file

@ -1,5 +1,4 @@
var set_runway_from_metar_wind = func {
if (!getprop("/environment/metar/real-metar"))
return printlog("info", "metar-rwy: no live weather");
if (!getprop("/sim/startup/options/airport"))