Author: alink
Date: Sun Nov 4 17:40:08 2007
New Revision: 21486
URL: http://svn.gna.org/viewcvs/wesnoth?rev=21486&view=rev
Log:
Make null_location a constant
That's seems to make sense and avoid nasty bug
Modified:
trunk/src/map.cpp
trunk/src/map.hpp
Modified: trunk/src/map.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/map.cpp?rev=21486&r1=21485&r2=21486&view=diff
==============================================================================
--- trunk/src/map.cpp (original)
+++ trunk/src/map.cpp Sun Nov 4 17:40:08 2007
@@ -40,7 +40,7 @@
return s;
}
-gamemap::location gamemap::location::null_location;
+const gamemap::location gamemap::location::null_location;
const std::string gamemap::default_map_header = "usage=map\nborder_size=1\n\n";
const gamemap::tborder gamemap::default_border = gamemap::SINGLE_TILE_BORDER;
Modified: trunk/src/map.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/map.hpp?rev=21486&r1=21485&r2=21486&view=diff
==============================================================================
--- trunk/src/map.hpp (original)
+++ trunk/src/map.hpp Sun Nov 4 17:40:08 2007
@@ -97,7 +97,7 @@
DIRECTION get_relative_dir(location loc) const;
static DIRECTION get_opposite_dir(DIRECTION d);
- static location null_location;
+ static const location null_location;
};
const t_translation::t_list& underlying_mvt_terrain(const location&
loc) const
{ return underlying_mvt_terrain(get_terrain(loc)); }
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits