Parcourir la source

only print tile info if it's still in the game

George C. Privon il y a 8 ans
Parent
commit
11a86bf2f1
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      cgame.py

+ 4 - 1
cgame.py

@@ -354,7 +354,10 @@ class cgame:
             elif _re.match('q', cmd, _re.IGNORECASE):
                 _sys.exit(0)
             elif _re.match('s', cmd, _re.IGNORECASE):
-                self.printStatus(tilestats=True)
+                if self.state:
+                    self.printStatus(tilestats=False)
+                else:
+                    self.printStatus(tilestats=True)
             elif _re.match('n', cmd, _re.IGNORECASE):
                 self.advanceTurn(builder=False)
             elif _re.match('r', cmd, _re.IGNORECASE):