changeset 341:40667c9caff9

if turns are unlimited, display day as x/-
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Sat, 05 Sep 2009 22:58:59 +0000
parents 31f6f1b2697e
children 0d42622dbe12
files gamelib/gameboard.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/gameboard.py	Sat Sep 05 22:51:29 2009 +0000
+++ b/gamelib/gameboard.py	Sat Sep 05 22:58:59 2009 +0000
@@ -827,7 +827,7 @@
     def advance_day(self):
         self.days += 1
         self.toolbar.day_counter.style.color = (255, 0, 0)
-        self.toolbar.update_day_counter("%s/%s" % (self.days, constants.TURN_LIMIT))
+        self.toolbar.update_day_counter("%s/%s" % (self.days, constants.TURN_LIMIT if constants.TURN_LIMIT > 0 else "-"))
 
     def clear_foxes(self):
         for fox in self.foxes.copy():