public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in games-action/powermanga/files: powermanga-0.90-segfault.patch
@ 2012-08-03  4:25 Michael Sterrett (mr_bones_)
  0 siblings, 0 replies; only message in thread
From: Michael Sterrett (mr_bones_) @ 2012-08-03  4:25 UTC (permalink / raw
  To: gentoo-commits

mr_bones_    12/08/03 04:25:58

  Added:                powermanga-0.90-segfault.patch
  Log:
  patch from Daniel Santos to fix segfault (bug #422915)
  
  (Portage version: 2.1.10.65/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  games-action/powermanga/files/powermanga-0.90-segfault.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/powermanga/files/powermanga-0.90-segfault.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/powermanga/files/powermanga-0.90-segfault.patch?rev=1.1&content-type=text/plain

Index: powermanga-0.90-segfault.patch
===================================================================
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],





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-08-03  4:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-03  4:25 [gentoo-commits] gentoo-x86 commit in games-action/powermanga/files: powermanga-0.90-segfault.patch Michael Sterrett (mr_bones_)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox