mail[Wesnoth-commits] r28788 - /trunk/src/editor2/map_fragment.cpp


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

Header


Content

Posted by kailoran on August 20, 2008 - 16:21:
Author: ilor
Date: Wed Aug 20 16:21:16 2008
New Revision: 28788

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28788&view=rev
Log:
fix code<->comment desync

Modified:
    trunk/src/editor2/map_fragment.cpp

Modified: trunk/src/editor2/map_fragment.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/map_fragment.cpp?rev=28788&r1=28787&r2=28788&view=diff
==============================================================================
--- trunk/src/editor2/map_fragment.cpp (original)
+++ trunk/src/editor2/map_fragment.cpp Wed Aug 20 16:21:16 2008
@@ -130,8 +130,8 @@
                gamemap::location l(0,0);
                int x = ti.offset.x;
                int y = ti.offset.y;
-               // rotate the X-Y axes to SOUTH/SOUTH_EAST - SOUTH_WEST axes
-               // but if x is odd, simply using x/2 + x/2 will lack a step
+               // rotate the X-Y axes to NORTH/NORTH_EAST - SOUTH_EAST axes'
+               // reverse of what the cw rotation does
                l = l.get_direction(gamemap::location::NORTH, 
(x-is_odd(x))/2);
                l = l.get_direction(gamemap::location::NORTH_EAST, 
(x+is_odd(x))/2 );
                l = l.get_direction(gamemap::location::SOUTH_EAST, y);




Related Messages


Powered by MHonArc, Updated Wed Aug 20 16:41:08 2008