stratagus-cvs
[Top][All Lists]
Advanced

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

[Stratagus-CVS] stratagus/src action/action_spellcast.c stratag...


From: address@hidden
Subject: [Stratagus-CVS] stratagus/src action/action_spellcast.c stratag...
Date: 25 Jan 2004 16:10:10 +1100

CVSROOT:        /home/strat
Module name:    stratagus
Changes by:      <address@hidden>       04/01/25 16:10:10

Modified files:
        src/action     : action_spellcast.c 
        src/stratagus  : spells.c 

Log message:
        More DarkPortal/Teleporter Fixes

Patches:
Index: stratagus/src/action/action_spellcast.c
diff -u stratagus/src/action/action_spellcast.c:1.41 
stratagus/src/action/action_spellcast.c:1.42
--- stratagus/src/action/action_spellcast.c:1.41        Thu Jan 15 09:31:01 2004
+++ stratagus/src/action/action_spellcast.c     Sun Jan 25 16:10:09 2004
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//      $Id: action_spellcast.c,v 1.41 2004/01/14 22:31:01 nobody_ Exp $
+//      $Id: action_spellcast.c,v 1.42 2004/01/25 05:10:09 wizzard Exp $
 
 /*
 ** This is inherited from action_attack.c, actually spell casting will
@@ -184,7 +184,7 @@
                        // Check if we can cast the spell.
                        //
                        spell = unit->Orders[0].Arg1;
-                       if (!CanCastSpell(unit,spell, unit->Orders[0].Goal,
+                       if (!CanCastSpell(unit, spell, unit->Orders[0].Goal,
                                        unit->Orders[0].X, unit->Orders[0].Y)) {
 
                                //
@@ -249,7 +249,7 @@
                                } else {
                                        spell = unit->Orders[0].Arg1;
                                        unit->Value = SpellCast(unit, spell, 
unit->Orders[0].Goal,
-                                               
unit->Orders[0].X,unit->Orders[0].Y);
+                                               unit->Orders[0].X, 
unit->Orders[0].Y);
                                }
                        }
                        if (!unit->Value) {
Index: stratagus/src/stratagus/spells.c
diff -u stratagus/src/stratagus/spells.c:1.141 
stratagus/src/stratagus/spells.c:1.142
--- stratagus/src/stratagus/spells.c:1.141      Fri Jan 23 04:16:35 2004
+++ stratagus/src/stratagus/spells.c    Sun Jan 25 16:10:09 2004
@@ -27,7 +27,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: spells.c,v 1.141 2004/01/22 17:16:35 nobody_ Exp $
+//     $Id: spells.c,v 1.142 2004/01/25 05:10:09 wizzard Exp $
 
 /*
 **             And when we cast our final spell
@@ -199,7 +199,7 @@
                RemoveUnit(portal, NULL);
                PlaceUnit(portal, x, y);
        } else {
-               portal = MakeUnitAndPlace(x, y, ptype, caster->Player);
+               portal = MakeUnitAndPlace(x, y, ptype, 
&Players[PlayerNumNeutral]);
        }
 /*     MakeMissile(spell->Missile,
                x * TileSizeX + TileSizeX / 2, y * TileSizeY + TileSizeY / 2,




reply via email to

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