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/action/action_...


From: Russell Smith
Subject: [Stratagus-CVS] stratagus doc/ChangeLog.html src/action/action_...
Date: Sun, 12 Oct 2003 01:34:05 -0400

CVSROOT:        /cvsroot/stratagus
Module name:    stratagus
Branch:         
Changes by:     Russell Smith <address@hidden>  03/10/12 01:34:05

Modified files:
        doc            : ChangeLog.html 
        src/action     : action_build.c 

Log message:
        Fixed Bug: Failed Building Crashes Engine

Patches:
Index: stratagus/doc/ChangeLog.html
diff -u stratagus/doc/ChangeLog.html:1.553 stratagus/doc/ChangeLog.html:1.554
--- stratagus/doc/ChangeLog.html:1.553  Sat Oct 11 02:43:45 2003
+++ stratagus/doc/ChangeLog.html        Sun Oct 12 01:34:04 2003
@@ -2,7 +2,7 @@
 <html>
 <head>
 <!--
-----   $Id: ChangeLog.html,v 1.553 2003/10/11 06:43:45 mr-russ Exp $
+----   $Id: ChangeLog.html,v 1.554 2003/10/12 05:34:04 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: Failed Building Crashes Engine (from Russell Smith).
     <li>Remove old Master Server Code, began implementing a new one (from 
Russell Smith).
     <li>Finished Support for units with MinAttackRange &gt;1 Moving away to 
attacker (from Russell Smith).
     <li>Added Patch #1987: Fix for air/ground transporters. (from pludov).
Index: stratagus/src/action/action_build.c
diff -u stratagus/src/action/action_build.c:1.97 
stratagus/src/action/action_build.c:1.98
--- stratagus/src/action/action_build.c:1.97    Fri Oct  3 16:31:24 2003
+++ stratagus/src/action/action_build.c Sun Oct 12 01:34:05 2003
@@ -26,7 +26,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: action_build.c,v 1.97 2003/10/03 20:31:24 jsalmon3 Exp $
+//     $Id: action_build.c,v 1.98 2003/10/12 05:34:05 mr-russ Exp $
 
 //@{
 
@@ -132,6 +132,7 @@
            // Release Temporary Building
             UnitClearOrders(unit->Orders[0].Goal);
             ReleaseUnit(unit->Orders[0].Goal);
+           unit->Orders[0].Goal = NULL;
            unit->SubAction = 0;
            if (unit->Selected) {       // update display for new action
                SelectedUnitChanged();
@@ -173,7 +174,7 @@
        // Release Temporary Building
         UnitClearOrders(unit->Orders[0].Goal);
         ReleaseUnit(unit->Orders[0].Goal);
-       unit->Orders[0].Goal = 0;
+       unit->Orders[0].Goal = NULL;
        unit->SubAction = 0;
        if (unit->Selected) {   // update display for new action
            SelectedUnitChanged();
@@ -206,6 +207,7 @@
        // Release Temporary Building
         UnitClearOrders(unit->Orders[0].Goal);
         ReleaseUnit(unit->Orders[0].Goal);
+       unit->Orders[0].Goal = NULL;
        unit->SubAction = 0;
        if (unit->Selected) {   // update display for new action
            SelectedUnitChanged();
@@ -227,6 +229,7 @@
        // Release Temporary Building
         UnitClearOrders(unit->Orders[0].Goal);
         ReleaseUnit(unit->Orders[0].Goal);
+       unit->Orders[0].Goal = NULL;
        unit->SubAction = 0;
        if (unit->Selected) {   // update display for new action
            SelectedUnitChanged();
@@ -290,6 +293,7 @@
        unit->X = x;
        unit->Y = y;
        unit->Orders[0].Action = UnitActionStill;
+       unit->Orders[0].Goal = NULL;
        unit->SubAction = 0;
     } else {
        //  Make the builder repair the newly spawned building.




reply via email to

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