Mercurial > skaapsteker
comparison skaapsteker/sprites/base.py @ 592:1386cae4cc15
Remove don't crash if we're colliding with a player after being bounced off the floor
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sun, 10 Apr 2011 18:39:18 +0200 |
parents | b8bed508036f |
children | 851c8726696c |
comparison
equal
deleted
inserted
replaced
591:87947e4afa02 | 592:1386cae4cc15 |
---|---|
252 self._update_image(True) | 252 self._update_image(True) |
253 | 253 |
254 def check_floors(self, floors): | 254 def check_floors(self, floors): |
255 """If we're only on 1 floor tile, and our centre is beyond half way, | 255 """If we're only on 1 floor tile, and our centre is beyond half way, |
256 turn back""" | 256 turn back""" |
257 if len(floors) > 1: | 257 if len(floors) != 1: |
258 return | 258 return |
259 | 259 |
260 floor = floors[0] | 260 floor = floors[0] |
261 | 261 |
262 if self.facing == 'left': | 262 if self.facing == 'left': |