Author: sveinung
Date: Thu Oct  8 17:42:41 2015
New Revision: 30030

URL: http://svn.gna.org/viewcvs/freeciv?rev=30030&view=rev
Log:
mapgen: make it clear that -1 isn't a direction

See patch #6397

Modified:
    trunk/server/generator/mapgen.c

Modified: trunk/server/generator/mapgen.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/generator/mapgen.c?rev=30030&r1=30029&r2=30030&view=diff
==============================================================================
--- trunk/server/generator/mapgen.c     (original)
+++ trunk/server/generator/mapgen.c     Thu Oct  8 17:42:41 2015
@@ -3341,7 +3341,7 @@
       /* Check a river in one direction. */
       pend = NULL;
       length = -1;
-      dir = -1;
+      dir = direction8_invalid();
       dirs_num = 0;
       for (j = 0; j < map.num_valid_dirs; j++) {
         if (cardinal_only && !is_cardinal_dir(map.valid_dirs[j])) {


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to