diff pytouhou/game/effect.pyx @ 509:292fea5c584e

Some more type optimisations.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 25 Nov 2013 19:12:56 +0100
parents 78e1c3864e73
children e35bef07290d
line wrap: on
line diff
--- a/pytouhou/game/effect.pyx
+++ b/pytouhou/game/effect.pyx
@@ -43,8 +43,8 @@ cdef class Particle(Effect):
         self.frame = 0
         self.duration = duration
 
-        random_pos = (self.x + amp * <double>game.prng.rand_double() - amp / 2,
-                      self.y + amp * <double>game.prng.rand_double() - amp / 2)
+        random_pos = (self.x + amp * game.prng.rand_double() - amp / 2,
+                      self.y + amp * game.prng.rand_double() - amp / 2)
 
         if not reverse:
             self.pos_interpolator = Interpolator((self.x, self.y), 0,