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/map/map_fog.c


From: Russell Smith
Subject: [Stratagus-CVS] stratagus doc/ChangeLog.html src/map/map_fog.c
Date: Wed, 27 Aug 2003 06:25:46 -0400

CVSROOT:        /cvsroot/stratagus
Module name:    stratagus
Branch:         
Changes by:     Russell Smith <address@hidden>  03/08/27 06:25:46

Modified files:
        doc            : ChangeLog.html 
        src/map        : map_fog.c 

Log message:
        Fix bug where units in bottom right corner segfault the game

Patches:
Index: stratagus/doc/ChangeLog.html
diff -u stratagus/doc/ChangeLog.html:1.514 stratagus/doc/ChangeLog.html:1.515
--- stratagus/doc/ChangeLog.html:1.514  Thu Aug 21 03:12:02 2003
+++ stratagus/doc/ChangeLog.html        Wed Aug 27 06:25:45 2003
@@ -2,7 +2,7 @@
 <html>
 <head>
 <!--
-----   $Id: ChangeLog.html,v 1.514 2003/08/21 07:12:02 n0body Exp $
+----   $Id: ChangeLog.html,v 1.515 2003/08/27 10:25:45 mr-russ Exp $
 
 ----   (c) Copyright 1998-2003 by Lutz Sammer
 
@@ -36,6 +36,7 @@
 <li>Future 1.19 Release<p>
     <ul>
     <li>++
+    <li>Added Circular Goal support, Major vision and pathfinding changes 
(from Russell Smith).
     <li>Added flags for different building methods (from Crestez Leonard).
     <li>Pressing shift will now show all waypoints, including building 
outlines (from Crestez Leonard)
     <li>You can now save in gz format (from Russell Smith and Crestez Leonard).
Index: stratagus/src/map/map_fog.c
diff -u stratagus/src/map/map_fog.c:1.98 stratagus/src/map/map_fog.c:1.99
--- stratagus/src/map/map_fog.c:1.98    Tue Aug 26 04:30:09 2003
+++ stratagus/src/map/map_fog.c Wed Aug 27 06:25:46 2003
@@ -27,7 +27,7 @@
 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 //      02111-1307, USA.
 //
-//     $Id: map_fog.c,v 1.98 2003/08/26 08:30:09 mr-russ Exp $
+//     $Id: map_fog.c,v 1.99 2003/08/27 10:25:46 mr-russ Exp $
 
 //@{
 
@@ -387,10 +387,10 @@
                if( cx[0] < TheMap.Width && cy[0] >= 0) {
                    
marker(player,cx[0],cy[0],&TheMap.Fields[cx[0]+cy[0]*TheMap.Width].Visible[p]);
                }
-               if( cx[1] >= 0 && cy[1] < TheMap.Height) {
+               if( cx[1] >= 0 && cy[1] >= 0) {
                    
marker(player,cx[1],cy[1],&TheMap.Fields[cx[1]+cy[1]*TheMap.Width].Visible[p]);
                }
-               if( cx[2] >= 0 && cy[2] >= 0 ) {
+               if( cx[2] >= 0 && cy[2] < TheMap.Height ) {
                    
marker(player,cx[2],cy[2],&TheMap.Fields[cx[2]+cy[2]*TheMap.Width].Visible[p]);
                }
                if( cx[3] < TheMap.Width && cy[3] < TheMap.Height ) {




reply via email to

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