mail[Wesnoth-commits] r24199 - /trunk/src/cavegen.hpp


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

Header


Content

Posted by koraq on March 02, 2008 - 11:25:
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);




Related Messages


Powered by MHonArc, Updated Sun Mar 02 12:01:32 2008