stratagus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Stratagus-CVS] stratagus/src/missile missile.c


From: Mohydine
Subject: [Stratagus-CVS] stratagus/src/missile missile.c
Date: Mon, 20 Oct 2003 20:27:45 -0400

CVSROOT:        /cvsroot/stratagus
Module name:    stratagus
Branch:         
Changes by:     Mohydine <address@hidden>       03/10/20 20:27:45

Modified files:
        src/missile    : missile.c 

Log message:
        ----------------------------------------------------------------------
        fixed compilation errors.

Patches:
Index: stratagus/src/missile/missile.c
diff -u stratagus/src/missile/missile.c:1.98 
stratagus/src/missile/missile.c:1.99
--- stratagus/src/missile/missile.c:1.98        Mon Oct 20 20:18:31 2003
+++ stratagus/src/missile/missile.c     Mon Oct 20 20:27:45 2003
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: missile.c,v 1.98 2003/10/21 00:18:31 n0body Exp $
+//     $Id: missile.c,v 1.99 2003/10/21 00:27:45 mohydine Exp $
 
 //@{
 
@@ -851,12 +851,16 @@
 */
 local int PointToPointMissile(Missile* missile)
 {
+    int xstep;
+    int ystep;
+    int x;
+    int y;
+
     DebugCheck(missile == NULL);
     if (MissileInitMove(missile) == 1) {
         return 1;
     }
-    int xstep;
-    int ystep;
+
 //    int zstep;
     DebugCheck(missile->Type == NULL);
     DebugCheck(missile->TotalStep == 0);
@@ -865,8 +869,6 @@
     missile->X = missile->SourceX + xstep * missile->CurrentStep / 1024;
     missile->Y = missile->SourceY + ystep * missile->CurrentStep / 1024;
     if (missile->Type->SmokeMissile && missile->CurrentStep) {
-        int x;
-        int y;
 
         x = missile->X + missile->Type->Width / 2;
         y = missile->Y + missile->Type->Height / 2;
@@ -1338,7 +1340,7 @@
 
     DebugCheck(file == NULL);
     CLprintf(file, "\n;;; -----------------------------------------\n");
-    CLprintf(file, ";;; MODULE: missile-types $Id: missile.c,v 1.98 2003/10/21 
00:18:31 n0body Exp $\n\n");
+    CLprintf(file, ";;; MODULE: missile-types $Id: missile.c,v 1.99 2003/10/21 
00:27:45 mohydine Exp $\n\n");
 
     //
     // Original number to internal missile-type name.
@@ -1444,7 +1446,7 @@
 
     DebugCheck(file == NULL);
     CLprintf(file,"\n;;; -----------------------------------------\n");
-    CLprintf(file,";;; MODULE: missiles $Id: missile.c,v 1.98 2003/10/21 
00:18:31 n0body Exp $\n\n");
+    CLprintf(file,";;; MODULE: missiles $Id: missile.c,v 1.99 2003/10/21 
00:27:45 mohydine Exp $\n\n");
 
     for (missiles = GlobalMissiles; *missiles; ++missiles) {
        SaveMissile(*missiles, file);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]