Author: miriam
Date: 2008-08-14 23:20:16 +0000 (Thu, 14 Aug 2008)
New Revision: 7934

Added:
   packages/trunk/snowballz/debian/patches/
   packages/trunk/snowballz/debian/patches/series
   packages/trunk/snowballz/debian/patches/typeerror_crash.patch
Modified:
   packages/trunk/snowballz/debian/changelog
Log:
Added patch to fix #495011: crashes with TypeError



Modified: packages/trunk/snowballz/debian/changelog
===================================================================
--- packages/trunk/snowballz/debian/changelog   2008-08-14 21:39:55 UTC (rev 
7933)
+++ packages/trunk/snowballz/debian/changelog   2008-08-14 23:20:16 UTC (rev 
7934)
@@ -4,8 +4,11 @@
   * Depend on python-numpy not python-numeric. (Closes: #478464).
   * Bump Standards Version to 3.8.0. (No changes needed).
 
- -- Barry deFreese <[EMAIL PROTECTED]>  Sat, 14 Jun 2008 22:54:56 -0400
+  [ David Martínez Martí ]
+  * Added typeerror_crash.patch to fix a TypeError bug. Closes: #495011
 
+ -- Miriam Ruiz <[EMAIL PROTECTED]>  Fri, 15 Aug 2008 01:09:22 +0200
+
 snowballz (0.9.5.1-1) unstable; urgency=low
 
   [ Barry deFreese ]

Added: packages/trunk/snowballz/debian/patches/series
===================================================================
--- packages/trunk/snowballz/debian/patches/series                              
(rev 0)
+++ packages/trunk/snowballz/debian/patches/series      2008-08-14 23:20:16 UTC 
(rev 7934)
@@ -0,0 +1 @@
+typeerror_crash.patch

Added: packages/trunk/snowballz/debian/patches/typeerror_crash.patch
===================================================================
--- packages/trunk/snowballz/debian/patches/typeerror_crash.patch               
                (rev 0)
+++ packages/trunk/snowballz/debian/patches/typeerror_crash.patch       
2008-08-14 23:20:16 UTC (rev 7934)
@@ -0,0 +1,21 @@
+# Copyright (C) 2008  David Martinez Marti <[EMAIL PROTECTED]>
+# Distributed under the same license as the game. See debian/copyright.
+# Fixes: #495011
+
+Index: snowballz-0.9.5.1/data.py
+===================================================================
+--- snowballz-0.9.5.1.orig/data.py     2008-08-15 01:12:17.000000000 +0200
++++ snowballz-0.9.5.1/data.py  2008-08-15 01:14:32.000000000 +0200
+@@ -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)
+ 


_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to