]> git.pond.sub.org Git - empserver/commitdiff
(add): Convert bridge spans or bridge towers into sea sectors instead the
authorRon Koenderink <rkoenderink@yahoo.ca>
Wed, 16 Nov 2005 13:11:54 +0000 (13:11 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Wed, 16 Nov 2005 13:11:54 +0000 (13:11 +0000)
wilderness sectors when wiping sectors.

src/lib/commands/add.c

index 3d9fa859c0c345289dafc1c43ea5b5d50db0f8de..fb37dea33562d9e89c0f0a0ed4d5b060c1b95cec 100644 (file)
@@ -172,11 +172,12 @@ add(void)
                sect.sct_defense = 0;
                sect.sct_own = 0;
                sect.sct_oldown = 0;
-               if (sect.sct_type != SCT_MOUNT &&
-                   sect.sct_type != SCT_PLAINS) {
-                   sect.sct_type = SCT_RURAL;
-                   sect.sct_newtype = SCT_RURAL;
-               }
+               if (sect.sct_type == SCT_BSPAN ||
+                   sect.sct_type == SCT_BTOWER)
+                   sect.sct_newtype = sect.sct_type = SCT_WATER;
+               else if (sect.sct_type != SCT_MOUNT &&
+                   sect.sct_type != SCT_PLAINS)
+                   sect.sct_newtype = sect.sct_type = SCT_RURAL;
                /* No dist path */
                sect.sct_dist_x = sect.sct_x;
                sect.sct_dist_y = sect.sct_y;