fairland: Drop option -a

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>
This commit is contained in:
Markus Armbruster 2020-07-26 17:29:09 +02:00
parent 1faab45815
commit 98e5b4867a
2 changed files with 2 additions and 24 deletions

View 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. get nearly any kind of map you want by choosing the right arguments.
.SH OPTIONS .SH OPTIONS
.TP .TP
.B \-a
mark the continents with a * so that you can tell them from the islands
.TP
.BI \-e " configfile" .BI \-e " configfile"
Use game configuration in \fIconfigfile\fR. Use game configuration in \fIconfigfile\fR.
.TP .TP

View file

@ -152,9 +152,6 @@ static void qprint(const char * const fmt, ...)
#define DEFAULT_OUTFILE_NAME "newcap_script" #define DEFAULT_OUTFILE_NAME "newcap_script"
static const char *outfile = DEFAULT_OUTFILE_NAME; 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. /* don't let the islands crash into each other.
1 = don't merge, 0 = merge. */ 1 = don't merge, 0 = merge. */
@ -248,11 +245,8 @@ main(int argc, char *argv[])
program_name = argv[0]; 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) { switch (opt) {
case 'a':
AIRPORT_MARKER = 1;
break;
case 'e': case 'e':
config_file = optarg; config_file = optarg;
break; break;
@ -385,7 +379,6 @@ static void
usage(void) usage(void)
{ {
printf("Usage: %s [OPTION]... NC SC [NI] [IS] [SP] [PM] [DI] [ID]\n" 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" " -e CONFIG-FILE configuration file\n"
" (default %s)\n" " (default %s)\n"
" -i islands may merge\n" " -i islands may merge\n"
@ -1130,7 +1123,7 @@ static void
write_sects(void) write_sects(void)
{ {
struct sctstr *sct; struct sctstr *sct;
int c, x, y, total; int x, y, total;
for (y = 0; y < WORLD_Y; y++) { for (y = 0; y < WORLD_Y; y++) {
for (x = y % 2; x < WORLD_X; x += 2) { for (x = y % 2; x < WORLD_X; x += 2) {
@ -1153,12 +1146,6 @@ write_sects(void)
add_resources(sct); 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(); 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 static int
@ -1285,8 +1268,6 @@ write_newcap_script(void)
for (c = 0; c < nc; ++c) { for (c = 0; c < nc; ++c) {
fprintf(script, "add %d %d %d p\n", c + 1, c + 1, c + 1); 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, "newcap %d %d,%d\n", c + 1, capx[c], capy[c]);
} }
fprintf(script, "add %d visitor visitor v\n", c + 1); fprintf(script, "add %d visitor visitor v\n", c + 1);