Mercurial > touhou
diff pytouhou/game/enemy.pxd @ 606:3c2f96f1d715
Fix compilation under Cython 0.22, by making the pyx and the pxd declarations’ except clause similar.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 26 Nov 2014 13:36:38 +0100 |
parents | a0fa01cd9f70 |
children | a6af3ff86612 |
line wrap: on
line diff
--- a/pytouhou/game/enemy.pxd +++ b/pytouhou/game/enemy.pxd @@ -48,7 +48,7 @@ cdef class Enemy(Element): cpdef move_to(self, unsigned long duration, double x, double y, double z, formula) cpdef stop_in(self, unsigned long duration, formula) cpdef set_boss(self, bint enable) - cdef bint is_visible(self, long screen_width, long screen_height) except? False + cdef bint is_visible(self, long screen_width, long screen_height) except -1 cdef void check_collisions(self) except * cdef void handle_callbacks(self) except * cdef void update(self) except *