comparison pytouhou/game/enemy.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 bcff39c920ab
comparison
equal deleted inserted replaced
539:d6d9a711253d 540:53fa73932e9a
332 cdef void check_collisions(self): 332 cdef void check_collisions(self):
333 cdef Bullet bullet 333 cdef Bullet bullet
334 cdef Player player 334 cdef Player player
335 cdef PlayerLaser laser 335 cdef PlayerLaser laser
336 cdef long damages 336 cdef long damages
337 cdef double half_size[2], phalf_size 337 cdef double half_size[2]
338 cdef double phalf_size
338 339
339 # Check for collisions 340 # Check for collisions
340 ex, ey = self.x, self.y 341 ex, ey = self.x, self.y
341 ehalf_size_x = self.hitbox_half_size[0] 342 ehalf_size_x = self.hitbox_half_size[0]
342 ehalf_size_y = self.hitbox_half_size[1] 343 ehalf_size_y = self.hitbox_half_size[1]