# HG changeset patch # User Neil Muller # Date 1302365516 -7200 # Node ID 7c0643e51f33431d87bc8f05c1bdd83001614b48 # Parent c9f8413fe644780b0f3e24f9ce6b4b5369b5429f Pass bounds to sprite.fix_bounds diff -r c9f8413fe644 -r 7c0643e51f33 skaapsteker/physics.py --- a/skaapsteker/physics.py Sat Apr 09 18:11:32 2011 +0200 +++ b/skaapsteker/physics.py Sat Apr 09 18:11:56 2011 +0200 @@ -168,8 +168,8 @@ self.rect = old_rect return not bool(new_collisions - old_collisions) - def fix_bounds(self): - print "Killing", self, self.rect, self._float_pos + def fix_bounds(self, bounds): + print "Killing", self, self.rect, self._float_pos, bounds self.kill() @@ -273,7 +273,7 @@ inbound = self._bounds.colliderect for sprite in self._mobiles: if not inbound(sprite): - sprite.fix_bounds() + sprite.fix_bounds(self._bounds) # position update and collision check (do last) for sprite in self._mobiles: