Author: mordante
Date: Thu Nov  1 19:36:35 2007
New Revision: 21389

URL: http://svn.gna.org/viewcvs/wesnoth?rev=21389&view=rev
Log:
Hack to allow the editing of the odd border tiles, not perfect
but if fixes bug #10216 for now. 
(The problem is that in the hex the neighbour is sometimes selected.)

Modified:
    trunk/src/display.cpp

Modified: trunk/src/display.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.cpp?rev=21389&r1=21388&r2=21389&view=diff
==============================================================================
--- trunk/src/display.cpp (original)
+++ trunk/src/display.cpp Thu Nov  1 19:36:35 2007
@@ -173,6 +173,11 @@
        if (y_mod < tesselation_y_size / 2) {
                if ((x_mod * 2 + y_mod) < (s / 2)) {
                        x_modifier = -1;
+                       y_modifier = -1;
+               // @todo this hack allows the editor to modify the odd border 
tiles
+               // but the selection still has glitches.
+               } else if (y_mod < 0 && (x_mod * 2 - y_mod) < (s * 3 / 2)) {    
                
+                       x_modifier = 0;
                        y_modifier = -1;
                } else if ((x_mod * 2 - y_mod) < (s * 3 / 2)) {
                        x_modifier = 0;


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to