]> git.pond.sub.org Git - empserver/commitdiff
fairland: Drop option -a
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 26 Jul 2020 15:29:09 +0000 (17:29 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 09:41:36 +0000 (10:41 +0100)
With -a, fairland makes the capital sector an airfield to "mark the
continents [...] so that you can tell them from the islands".  This is
pretty redundant since commit afc0ef94e "Make fairland record the
island number in the deity territory", v4.3.31.  Drop it.

The map fairland prints is not affected.  The continents are clearly
visible there.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
man/fairland.6
src/util/fairland.c

index ac18c7b234573fdfd3a122efce75298e41889f16..0157c0e7bf3708de74cb434679e01ee4bbd97ef1 100644 (file)
@@ -31,9 +31,6 @@ distribution of resources and the same number of mountains.  You can
 get nearly any kind of map you want by choosing the right arguments.
 .SH OPTIONS
 .TP
-.B \-a
-mark the continents with a * so that you can tell them from the islands
-.TP
 .BI \-e " configfile"
 Use game configuration in \fIconfigfile\fR.
 .TP
index 74f1af14499859149ee3eed98490dacbcc5eedd3..4fd894ebb306c7867e4dbe072da9970542ce7cb4 100644 (file)
@@ -152,9 +152,6 @@ static void qprint(const char * const fmt, ...)
 
 #define DEFAULT_OUTFILE_NAME "newcap_script"
 static const char *outfile = DEFAULT_OUTFILE_NAME;
-/* mark the continents with a * so you can tell them
-   from the islands 1 = mark, 0 = don't mark. */
-static int AIRPORT_MARKER = 0;
 
 /* don't let the islands crash into each other.
    1 = don't merge, 0 = merge. */
@@ -248,11 +245,8 @@ main(int argc, char *argv[])
 
     program_name = argv[0];
 
-    while ((opt = getopt(argc, argv, "ae:hioqR:s:v")) != EOF) {
+    while ((opt = getopt(argc, argv, "e:hioqR:s:v")) != EOF) {
        switch (opt) {
-       case 'a':
-           AIRPORT_MARKER = 1;
-           break;
        case 'e':
            config_file = optarg;
            break;
@@ -385,7 +379,6 @@ static void
 usage(void)
 {
     printf("Usage: %s [OPTION]... NC SC [NI] [IS] [SP] [PM] [DI] [ID]\n"
-          "  -a              airport marker for continents\n"
           "  -e CONFIG-FILE  configuration file\n"
           "                  (default %s)\n"
           "  -i              islands may merge\n"
@@ -1130,7 +1123,7 @@ static void
 write_sects(void)
 {
     struct sctstr *sct;
-    int c, x, y, total;
+    int x, y, total;
 
     for (y = 0; y < WORLD_Y; y++) {
        for (x = y % 2; x < WORLD_X; x += 2) {
@@ -1153,12 +1146,6 @@ write_sects(void)
                add_resources(sct);
        }
     }
-    if (AIRPORT_MARKER)
-       for (c = 0; c < nc; ++c) {
-           sct = getsectp(capx[c], capy[c]);
-           sct->sct_type = SCT_AIRPT;
-           sct->sct_newtype = SCT_AIRPT;
-       }
     set_coastal_flags();
 }
 
@@ -1186,10 +1173,6 @@ output(void)
            }
        }
     }
-    if (AIRPORT_MARKER)
-       printf("\n\nEach continent is marked by a \"*\" on the map (to distinguish them from\n"
-              "the islands).  You can redesignate these airfields to wilderness sectors\n"
-              "one at a time, each time you add a new country to the game.\n");
 }
 
 static int
@@ -1285,8 +1268,6 @@ write_newcap_script(void)
 
     for (c = 0; c < nc; ++c) {
        fprintf(script, "add %d %d %d p\n", c + 1, c + 1, c + 1);
-       if (AIRPORT_MARKER)
-           fprintf(script, "des %d,%d -\n", capx[c], capy[c]);
        fprintf(script, "newcap %d %d,%d\n", c + 1, capx[c], capy[c]);
     }
     fprintf(script, "add %d visitor visitor v\n", c + 1);