# HG changeset patch # User Simon Cross # Date 1316289283 -7200 # Node ID 1e299187884b2295fa3657484c6e1cddbce38611 # Parent 6ec2e1e1994468899d40225fd8f9097c692fb477 Fix two-colours-plus rat eating bug. diff -r 6ec2e1e19944 -r 1e299187884b TODO.txt --- a/TODO.txt Sat Sep 17 21:50:34 2011 +0200 +++ b/TODO.txt Sat Sep 17 21:54:43 2011 +0200 @@ -17,7 +17,6 @@ would require a more global cache. Maybe centralise this in data.py or somewhere? * Or at least display "Loading levels..." -* Two colours plus eating bug * (Optional, this seems to be ok, from a glance) Improve Arrow behavior when on arrow and arrow rotator button Source: diff -r 6ec2e1e19944 -r 1e299187884b mamba/snake.py --- a/mamba/snake.py Sat Sep 17 21:50:34 2011 +0200 +++ b/mamba/snake.py Sat Sep 17 21:54:43 2011 +0200 @@ -84,6 +84,12 @@ new_segment.shift_tile(tile_state) for segment in self.segments[2:]: segment.shift_tile(segment.get_tile_state()) + # Fix for segment being mis-coloured when the + # snake passes over two consequetive paint + # splashes and then eats a lot of large rats + # Warning: Don't completely understand why this + # works. + ds = 0 else: self.shiftup_segments(1, tile_state)