[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/action action_spellcast.c
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src/action action_spellcast.c |
Date: |
14 Dec 2003 20:44:12 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 03/12/14 20:44:12
Modified files:
src/action : action_spellcast.c
Log message:
Bugfix, add + that was accidently deleted
Patches:
Index: stratagus/src/action/action_spellcast.c
diff -u stratagus/src/action/action_spellcast.c:1.39
stratagus/src/action/action_spellcast.c:1.40
--- stratagus/src/action/action_spellcast.c:1.39 Sun Dec 14 17:24:20 2003
+++ stratagus/src/action/action_spellcast.c Sun Dec 14 20:44:12 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: action_spellcast.c,v 1.39 2003/12/14 06:24:20 wizzard Exp $
+// $Id: action_spellcast.c,v 1.40 2003/12/14 09:44:12 wizzard Exp $
/*
** This is inherited from action_attack.c, actually spell casting will
@@ -132,9 +132,9 @@
if (!unit->Type->Building) {
// FIXME: buildings could have directions
UnitHeadingFromDeltaXY(unit,
- unit->Orders[0].X
+ unit->Orders[0].X +
((SpellType*)unit->Orders[0].Arg1)->Range - unit->X,
- unit->Orders[0].Y
+ unit->Orders[0].Y +
((SpellType*)unit->Orders[0].Arg1)->Range - unit->Y);
}
unit->SubAction++; // cast the spell