stratagus-cvs
[Top][All Lists]
Advanced

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

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


From: Russell Smith
Subject: [Stratagus-CVS] stratagus doc/ChangeLog.html src/clone/spells.c
Date: Thu, 06 Nov 2003 02:10:59 -0500

CVSROOT:        /cvsroot/stratagus
Module name:    stratagus
Branch:         
Changes by:     Russell Smith <address@hidden>  03/11/06 02:10:59

Modified files:
        doc            : ChangeLog.html 
        src/clone      : spells.c 

Log message:
        Fixed Bug #6306: DebugCheck at src/clone/unit_draw.c:895
        Must send HitUnit a positive damage

Patches:
Index: stratagus/doc/ChangeLog.html
diff -u stratagus/doc/ChangeLog.html:1.567 stratagus/doc/ChangeLog.html:1.568
--- stratagus/doc/ChangeLog.html:1.567  Sun Nov  2 19:14:33 2003
+++ stratagus/doc/ChangeLog.html        Thu Nov  6 02:10:58 2003
@@ -2,7 +2,7 @@
 <html>
 <head>
 <!--
-----   $Id: ChangeLog.html,v 1.567 2003/11/03 00:14:33 nehalmistry Exp $
+----   $Id: ChangeLog.html,v 1.568 2003/11/06 07:10:58 mr-russ Exp $
 
 ----   (c) Copyright 1998-2003 by Lutz Sammer
 
@@ -36,6 +36,7 @@
 <li>Future 2.00 Release<p>
     <ul>
     <li>++
+    <li>Fixed Bug #6306: DebugCheck at src/clone/unit_draw.c:895 (from Russell 
Smith).
     <li>Allow selection of more than 9 units (from Nehal Mistry).
     <li>Upgraded Network Code, Variable packet size and don't send repeat 
commands (from Russell Smith).
     <li>Fixed Bug #6063: Copy and Paste isn't working in boxes (from Russell 
Smith).
Index: stratagus/src/clone/spells.c
diff -u stratagus/src/clone/spells.c:1.121 stratagus/src/clone/spells.c:1.122
--- stratagus/src/clone/spells.c:1.121  Wed Nov  5 04:30:47 2003
+++ stratagus/src/clone/spells.c        Thu Nov  6 02:10:58 2003
@@ -27,7 +27,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: spells.c,v 1.121 2003/11/05 09:30:47 n0body Exp $
+//     $Id: spells.c,v 1.122 2003/11/06 07:10:58 mr-russ Exp $
 
 /*
 **     And when we cast our final spell
@@ -249,7 +249,7 @@
            continue;
        }
         if (hp < 0) {
-           HitUnit(caster, target, hp);
+           HitUnit(caster, target, -hp);
         } else {
            target->HP += hp;
            if (target->HP > target->Stats->HitPoints) {
@@ -527,7 +527,7 @@
 
     caster->Mana -= castcount * manacost;
     if (hp < 0) {
-       HitUnit(caster, target, castcount * hp);
+       HitUnit(caster, target, -(castcount * hp));
     } else {
        target->HP += castcount * hp;
        if (target->HP > target->Stats->HitPoints) {




reply via email to

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