# HG changeset patch # User Simon Cross # Date 1252192114 0 # Node ID 279974cc06980033f573339edc53641d1534519e # Parent 1b35fceccaaae5a88828e89d7e2261b1419c0764 Only set color of days left to red when there is only one day left. diff -r 1b35fceccaaa -r 279974cc0698 gamelib/gameboard.py --- a/gamelib/gameboard.py Sat Sep 05 23:04:40 2009 +0000 +++ b/gamelib/gameboard.py Sat Sep 05 23:08:34 2009 +0000 @@ -826,7 +826,8 @@ def advance_day(self): self.days += 1 - self.toolbar.day_counter.style.color = (255, 0, 0) + if self.days == constants.TURN_LIMIT: + self.toolbar.day_counter.style.color = (255, 0, 0) self.toolbar.update_day_counter("%s/%s" % (self.days, constants.TURN_LIMIT if constants.TURN_LIMIT > 0 else "-")) def clear_foxes(self):