[Tux4kids-commits] r764 - tuxmath/trunk/src
cheezmeister-guest at alioth.debian.org
cheezmeister-guest at alioth.debian.org
Mon Nov 3 15:03:44 UTC 2008
Author: cheezmeister-guest
Date: 2008-11-03 15:03:44 +0000 (Mon, 03 Nov 2008)
New Revision: 764
Modified:
tuxmath/trunk/src/factroids.c
Log:
Fixed (?) factroids segfault in Windows
Modified: tuxmath/trunk/src/factroids.c
===================================================================
--- tuxmath/trunk/src/factroids.c 2008-10-17 01:29:04 UTC (rev 763)
+++ tuxmath/trunk/src/factroids.c 2008-11-03 15:03:44 UTC (rev 764)
@@ -1491,12 +1491,12 @@
asteroid[i].alive=1;
asteroid[i].rx=x;
asteroid[i].ry=y;
+ asteroid[i].angle=angle;
+ asteroid[i].angle_speed=angle_speed;
+ asteroid[i].y=(asteroid[i].ry - (IMG_tuxship[asteroid[i].angle/DEG_PER_ROTATION]->h/2));
asteroid[i].x=(asteroid[i].rx - (IMG_tuxship[asteroid[i].angle/DEG_PER_ROTATION]->w/2));
- asteroid[i].y=(asteroid[i].ry - (IMG_tuxship[asteroid[i].angle/DEG_PER_ROTATION]->h/2));
+ asteroid[i].yspeed=yspeed;
asteroid[i].xspeed=xspeed;
- asteroid[i].yspeed=yspeed;
- asteroid[i].angle=angle;
- asteroid[i].angle_speed=angle_speed;
if(FF_game==FACTOROIDS_GAME){
More information about the Tux4kids-commits
mailing list