mail[Wesnoth-commits] r20050 - /trunk/src/map.hpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by alinktomine on September 02, 2007 - 07:08:
Author: alink
Date: Sun Sep  2 07:07:49 2007
New Revision: 20050

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20050&view=rev
Log:
Use (-1000,-1000) as the standard null location.
because the previous (-1,-1) is now used by the new border/corner.
This change fix a bug at corner with black-stripes spotted by uso.
It also clean some internal things (e.g. some units were placed hidden at the
map corner) and prevent any "adjacent to null_location" to give a valid 
result.
All seems ok, but it's remotely possible that some buggy pathfinding functions
(using gamemap::location()) causes problems if it badly start at (-1000,-1000)

Modified:
    trunk/src/map.hpp

Modified: trunk/src/map.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/map.hpp?rev=20050&r1=20049&r2=20050&view=diff
==============================================================================
--- trunk/src/map.hpp (original)
+++ trunk/src/map.hpp Sun Sep  2 07:07:49 2007
@@ -62,7 +62,7 @@
                static DIRECTION parse_direction(const std::string& str);
                static std::string write_direction(DIRECTION dir);
 
-               location() : x(-1), y(-1) {}
+               location() : x(-1000), y(-1000) {}
                location(int x, int y) : x(x), y(y) {}
                location(const config& cfg, const variable_set *variables);
 




Related Messages


Powered by MHonArc, Updated Sun Sep 02 07:40:13 2007