stratagus-cvs
[Top][All Lists]
Advanced

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

[Stratagus-CVS] stratagus/src/clone spells.c


From: Crestez Leonard
Subject: [Stratagus-CVS] stratagus/src/clone spells.c
Date: Tue, 11 Nov 2003 03:40:21 -0500

CVSROOT:        /cvsroot/stratagus
Module name:    stratagus
Branch:         
Changes by:     Crestez Leonard <address@hidden>        03/11/11 03:40:20

Modified files:
        src/clone      : spells.c 

Log message:
        Fixed bug with CastPolymorph when spell doesn't have a (good) missile.

Patches:
Index: stratagus/src/clone/spells.c
diff -u stratagus/src/clone/spells.c:1.123 stratagus/src/clone/spells.c:1.124
--- stratagus/src/clone/spells.c:1.123  Sun Nov  9 17:13:57 2003
+++ stratagus/src/clone/spells.c        Tue Nov 11 03:40:20 2003
@@ -27,7 +27,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: spells.c,v 1.123 2003/11/09 22:13:57 n0body Exp $
+//     $Id: spells.c,v 1.124 2003/11/11 08:40:20 n0body Exp $
 
 /*
 **     And when we cast our final spell
@@ -591,9 +591,11 @@
     if (UnitTypeCanMoveTo(x, y, type)) {
        MakeUnitAndPlace(x, y, type, Players + PlayerNumNeutral);
     }
-    MakeMissile(spell->Missile,
-       x * TileSizeX + TileSizeX / 2, y * TileSizeY + TileSizeY / 2,
-       x * TileSizeX + TileSizeX / 2, y * TileSizeY + TileSizeY / 2);
+    if (spell->Missile) {
+       MakeMissile(spell->Missile,
+           x * TileSizeX + TileSizeX / 2, y * TileSizeY + TileSizeY / 2,
+           x * TileSizeX + TileSizeX / 2, y * TileSizeY + TileSizeY / 2);
+    }
     return 0;
 }
 




reply via email to

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