Author: mordante
Date: Wed Apr  8 21:36:43 2009
New Revision: 34640

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34640&view=rev
Log:
State that the cast to unsigned is intentionally.

Modified:
    trunk/src/mapgen.cpp

Modified: trunk/src/mapgen.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/mapgen.cpp?rev=34640&r1=34639&r2=34640&view=diff
==============================================================================
--- trunk/src/mapgen.cpp (original)
+++ trunk/src/mapgen.cpp Wed Apr  8 21:36:43 2009
@@ -622,6 +622,7 @@
        //if adjacent tiles are tiles and unnamed, name them
        for (n = 0; n < 6; n++) {
                //we do not care for tiles outside the middle part
+               //cast to unsigned to skip x < 0 || y < 0 as well.
                if (unsigned(adj[n].x) >= width / 3 || unsigned(adj[n].y) >= 
height / 3) {
                        continue;
                }


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

Reply via email to