X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/851812f3fc226d30b4dc26ba147977e9511a82ee..06fa6a70a8ac0c94b675f748d91f968ed6c6578e:/res/micropolis.tcl diff --git a/res/micropolis.tcl b/res/micropolis.tcl index dac3517..c298ec1 100644 --- a/res/micropolis.tcl +++ b/res/micropolis.tcl @@ -412,8 +412,8 @@ sim ResetDynamic # the font in res (because it's already in the system fonts). These lines # are for other systems that lack the font. set FontPath "[pwd]/res/dejavu-lgc" -system "xset -fp $FontPath >&/dev/null" -system "xset +fp $FontPath >&/dev/null" +system "xset -fp $FontPath >/dev/null 2>&1" +system "xset +fp $FontPath >/dev/null 2>&1" ######################################################################## @@ -3101,8 +3101,10 @@ proc ShowSplashOf {head} { proc WithdrawSplashOf {head} { - set win WindowLink $head.splash] - wm withdraw $win + set win [WindowLink $head.splash] + if {$win != {}} { + wm withdraw $win + } } @@ -3152,8 +3154,10 @@ proc ShowScenarioOf {head} { proc WithdrawScenarioOf {head} { - set win WindowLink $head.scenario] - wm withdraw $win + set win [WindowLink $head.scenario] + if {$win != {}} { + wm withdraw $win + } }