Author: cazfi
Date: Wed Jun 24 22:53:55 2015
New Revision: 29187

URL: http://svn.gna.org/viewcvs/freeciv?rev=29187&view=rev
Log:
Clear roads, rivers, and bases before retrying map generation

Reported anonymously

See bug #23576

Modified:
    branches/S2_5/server/generator/mapgen.c

Modified: branches/S2_5/server/generator/mapgen.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/server/generator/mapgen.c?rev=29187&r1=29186&r2=29187&view=diff
==============================================================================
--- branches/S2_5/server/generator/mapgen.c     (original)
+++ branches/S2_5/server/generator/mapgen.c     Wed Jun 24 22:53:55 2015
@@ -2291,6 +2291,8 @@
     tile_set_continent(ptile, 0);
     map_set_placed(ptile); /* not a land tile */
     tile_clear_all_specials(ptile);
+    BV_CLR_ALL(ptile->bases);
+    BV_CLR_ALL(ptile->roads);
     tile_set_owner(ptile, NULL, NULL);
   } whole_map_iterate_end;
 
@@ -3526,6 +3528,8 @@
     tile_set_resource(ptile, NULL);
     tile_set_continent(ptile, 0);
     tile_clear_all_specials(ptile);
+    BV_CLR_ALL(ptile->bases);
+    BV_CLR_ALL(ptile->roads);
     tile_set_owner(ptile, NULL, NULL);
   } whole_map_iterate_end;
 


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

Reply via email to