diff options
Diffstat (limited to 'games-action/powermanga/files/powermanga-0.90-segfault.patch')
-rw-r--r-- | games-action/powermanga/files/powermanga-0.90-segfault.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/games-action/powermanga/files/powermanga-0.90-segfault.patch b/games-action/powermanga/files/powermanga-0.90-segfault.patch new file mode 100644 index 000000000000..573a5794e399 --- /dev/null +++ b/games-action/powermanga/files/powermanga-0.90-segfault.patch @@ -0,0 +1,22 @@ +https://bugs.gentoo.org/show_bug.cgi?id=422915 + +--- tmp/powermanga-0.90.orig/src/shots.c 2007-08-24 00:55:17.000000000 -0700 ++++ powermanga-0.90-dfsg/src/shots.c 2011-12-26 21:10:28.000000000 -0800 +@@ -447,8 +447,6 @@ + { + bullet->img_angle = (Sint16) (bullet->angle / PI_SUR_16); + } +- /* save current angle for the calculation of the next angle */ +- bullet->img_old_angle = bullet->img_angle; + /* avoid negative indexes */ + bullet->img_angle = (Sint16) abs (bullet->img_angle); + /* avoid a shot angle higher than the number of images */ +@@ -456,6 +454,8 @@ + { + bullet->img_angle = (Sint16) (bullet->spr.numof_images - 1); + } ++ /* save current angle for the calculation of the next angle */ ++ bullet->img_old_angle = bullet->img_angle; + /* draw the shot sprite */ + draw_sprite (bullet->spr. + img[bullet->img_angle], |