set message_window earlier to avoid crash on startup.
authorStas P <stas@stas.(none)>
Tue, 14 Dec 2010 16:43:14 +0000 (19:43 +0300)
committerStas P <stas@stas.(none)>
Tue, 14 Dec 2010 16:43:14 +0000 (19:43 +0300)
sst.py

diff --git a/sst.py b/sst.py
index 08377bea38bcd2956ba158391b0482e04bc5b845..56297c0b6deb2caf8d45b4e37c40f691db1e57fd 100755 (executable)
--- a/sst.py
+++ b/sst.py
@@ -5496,6 +5496,8 @@ def setup():
     if game.state.nscrem:
        prout(_("  YOU'LL NEED IT."))
     waitfor()
     if game.state.nscrem:
        prout(_("  YOU'LL NEED IT."))
     waitfor()
+    clrscr()
+    setwnd(message_window)
     newqad()
     if len(game.enemies) - (thing == game.quadrant) - (game.tholian != None):
        game.shldup = True
     newqad()
     if len(game.enemies) - (thing == game.quadrant) - (game.tholian != None):
        game.shldup = True
@@ -5875,8 +5877,6 @@ def helpme():
 
 def makemoves():
     "Command-interpretation loop."
 
 def makemoves():
     "Command-interpretation loop."
-    clrscr()
-    setwnd(message_window)
     while True:        # command loop 
        drawmaps(1)
         while True:    # get a command 
     while True:        # command loop 
        drawmaps(1)
         while True:    # get a command