Author: mordante
Date: Sun Mar 2 11:25:12 2008
New Revision: 24199
URL: http://svn.gna.org/viewcvs/wesnoth?rev=24199&view=rev
Log:
Fix another off by one error, should fix bug #11150.
Modified:
trunk/src/cavegen.hpp
Modified: trunk/src/cavegen.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/cavegen.hpp?rev=24199&r1=24198&r2=24199&view=diff
==============================================================================
--- trunk/src/cavegen.hpp (original)
+++ trunk/src/cavegen.hpp Sun Mar 2 11:25:12 2008
@@ -65,8 +65,8 @@
bool on_board(const gamemap::location& loc) const
{
return loc.x > 0 && loc.y > 0 &&
- loc.x < static_cast<long>(width_ - 1) &&
- loc.y < static_cast<long>(height_ - 1);
+ loc.x < static_cast<long>(width_ - 2) &&
+ loc.y < static_cast<long>(height_ - 2);
}
void set_terrain(gamemap::location loc, t_translation::t_terrain t);
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits