diff pytouhou/game/laser.pyx @ 540:53fa73932e9a

Fix warnings introduced in Cython 0.20, when more than one pointer is defined on the same line.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 10 May 2014 22:20:22 +0200
parents db28538cd399
children e35bef07290d
line wrap: on
line diff
--- a/pytouhou/game/laser.pyx
+++ b/pytouhou/game/laser.pyx
@@ -101,7 +101,9 @@ cdef class Laser(Element):
 
 
     cdef bint _check_collision(self, double point[2], double border_size):
-        cdef double c1[2], c2[2], c3[2]
+        cdef double c1[2]
+        cdef double c2[2]
+        cdef double c3[2]
 
         x, y = point[0] - self.base_pos[0], point[1] - self.base_pos[1]
         dx, dy = cos(self.angle), sin(self.angle)