comparison 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
comparison
equal deleted inserted replaced
539:d6d9a711253d 540:53fa73932e9a
99 cpdef set_base_pos(self, double x, double y): 99 cpdef set_base_pos(self, double x, double y):
100 self.base_pos[:] = [x, y] 100 self.base_pos[:] = [x, y]
101 101
102 102
103 cdef bint _check_collision(self, double point[2], double border_size): 103 cdef bint _check_collision(self, double point[2], double border_size):
104 cdef double c1[2], c2[2], c3[2] 104 cdef double c1[2]
105 cdef double c2[2]
106 cdef double c3[2]
105 107
106 x, y = point[0] - self.base_pos[0], point[1] - self.base_pos[1] 108 x, y = point[0] - self.base_pos[0], point[1] - self.base_pos[1]
107 dx, dy = cos(self.angle), sin(self.angle) 109 dx, dy = cos(self.angle), sin(self.angle)
108 dx2, dy2 = -dy, dx 110 dx2, dy2 = -dy, dx
109 111