# HG changeset patch # User Neil Muller # Date 1258758278 0 # Node ID f8072b2d6dd14863452c419c7990619386d85219 # Parent ae3cee7a13374bc13d77cd0142964ebe14049908 Fix bug where sapper foxes overwrite costs for all foxes diff -r ae3cee7a1337 -r f8072b2d6dd1 gamelib/animal.py --- a/gamelib/animal.py Thu Nov 19 13:53:00 2009 +0000 +++ b/gamelib/animal.py Fri Nov 20 23:04:38 2009 +0000 @@ -558,6 +558,8 @@ IMAGE_FILE = 'sprites/sapper_fox.png' CONFIG_NAME = 'sapper fox' + costs = Fox.costs.copy() + def __init__(self, pos): Fox.__init__(self, pos) self.costs['fence'] = 2 # We don't worry about fences