Changeset 341:40667c9caff9


Ignore:
Timestamp:
Sep 5, 2009, 10:58:59 PM (11 years ago)
Author:
Adrianna Pińska <adrianna.pinska@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@342
Message:

if turns are unlimited, display day as x/-

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/gameboard.py

    r336 r341  
    828828        self.days += 1
    829829        self.toolbar.day_counter.style.color = (255, 0, 0)
    830         self.toolbar.update_day_counter("%s/%s" % (self.days, constants.TURN_LIMIT))
     830        self.toolbar.update_day_counter("%s/%s" % (self.days, constants.TURN_LIMIT if constants.TURN_LIMIT > 0 else "-"))
    831831
    832832    def clear_foxes(self):
Note: See TracChangeset for help on using the changeset viewer.