]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/buil.c
Remove hard-coded differences between highways and bridge heads
[empserver] / src / lib / commands / buil.c
index c9ea788a34b6d56cba75c29cf6550fdaa3f26adf..bb3d2d6e826b7dafeddae1ccdb91572a27bfc87e 100644 (file)
@@ -528,12 +528,10 @@ build_bridge(struct sctstr *sp, short *vec)
     char buf[1024];
 
     if (opt_EASY_BRIDGES == 0) {       /* must have a bridge head or tower */
-       if (sp->sct_type != SCT_BTOWER) {
-           if (sp->sct_type != SCT_BHEAD)
-               return 0;
-           if (sp->sct_newtype != SCT_BHEAD)
-               return 0;
-       }
+       if (!IS_BRIDGE_HEAD(sp->sct_type))
+           return 0;
+       if (sp->sct_newtype != sp->sct_type)
+           return 0;
     }
 
     if (sp->sct_effic < 60 && !player->god) {