1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Author: David Martinez Marti <deavidsedice@gmail.com>
Description: Fixes crashes with TypeError
Bug-Debian: http://bugs.debian.org/495011
Last-Update: 2008-08-15
--- a/data.py
+++ b/data.py
@@ -287,9 +287,10 @@
self.lifetime = self.life/speed
- self.x = rabbyt.wrap(bounds[0], x, static=False)
+ x = rabbyt.lerp(x, x+self.life, dt=self.lifetime)
+ self.x = rabbyt.wrap(bounds[0], x, static=True)
y = rabbyt.lerp(y, y+self.life, dt=self.lifetime)
- self.y = rabbyt.wrap(bounds[1], y, static=False)
+ self.y = rabbyt.wrap(bounds[1], y, static=True)
self.scale = rabbyt.lerp(1, 0, dt=self.lifetime)
|