forked from github/server
"Ozean wird im CR zum Regionstyp Mahlstrom, verliert im CR aber seinen Namen" Maelstrom wird jetzt programmatisch in terrain_name gemacht (auch wenn es besser in terrain::name() sein sollte).
This commit is contained in:
parent
6dd3e9b1d4
commit
68e2ec932f
|
@ -1270,11 +1270,7 @@ report_computer(const char * filename, report_context * ctx)
|
||||||
else fprintf(F, "REGION %d %d %d\n", region_x(r, f), region_y(r, f), r->planep->id);
|
else fprintf(F, "REGION %d %d %d\n", region_x(r, f), region_y(r, f), r->planep->id);
|
||||||
}
|
}
|
||||||
if (r->land && strlen(rname(r, f->locale))) fprintf(F, "\"%s\";Name\n", rname(r, f->locale));
|
if (r->land && strlen(rname(r, f->locale))) fprintf(F, "\"%s\";Name\n", rname(r, f->locale));
|
||||||
if (is_cursed(r->attribs,C_MAELSTROM, 0))
|
|
||||||
tname = "maelstrom";
|
|
||||||
else {
|
|
||||||
tname = terrain_name(r);
|
tname = terrain_name(r);
|
||||||
}
|
|
||||||
|
|
||||||
fprintf(F, "\"%s\";Terrain\n", add_translation(tname, locale_string(f->locale, tname)));
|
fprintf(F, "\"%s\";Terrain\n", add_translation(tname, locale_string(f->locale, tname)));
|
||||||
if (sr->mode!=see_unit) fprintf(F, "\"%s\";visibility\n", visibility[sr->mode]);
|
if (sr->mode!=see_unit) fprintf(F, "\"%s\";visibility\n", visibility[sr->mode]);
|
||||||
|
|
|
@ -741,13 +741,7 @@ trailinto(const region * r, const struct locale * lang)
|
||||||
char ref[32];
|
char ref[32];
|
||||||
const char * s;
|
const char * s;
|
||||||
if (r) {
|
if (r) {
|
||||||
const char * tname;
|
const char * tname = terrain_name(r);
|
||||||
if (is_cursed(r->attribs, C_MAELSTROM, 0)) {
|
|
||||||
/* das kostet. evtl. wäre ein FL_CURSED gut? */
|
|
||||||
tname = "maelstrom";
|
|
||||||
} else {
|
|
||||||
tname = terrain_name(r);
|
|
||||||
}
|
|
||||||
strcat(strcpy(ref, tname), "_trail");
|
strcat(strcpy(ref, tname), "_trail");
|
||||||
s = locale_string(lang, ref);
|
s = locale_string(lang, ref);
|
||||||
if (s && *s) {
|
if (s && *s) {
|
||||||
|
@ -836,11 +830,8 @@ describe(FILE * F, const region * r, int partial, faction * f)
|
||||||
/* Terrain */
|
/* Terrain */
|
||||||
|
|
||||||
bufp += strxcpy(bufp, ", ");
|
bufp += strxcpy(bufp, ", ");
|
||||||
if (is_cursed(r->attribs,C_MAELSTROM, 0)) {
|
|
||||||
tname = "maelstrom";
|
|
||||||
} else {
|
|
||||||
tname = terrain_name(r);
|
tname = terrain_name(r);
|
||||||
}
|
|
||||||
bufp += strxcpy(bufp, LOC(f->locale, tname));
|
bufp += strxcpy(bufp, LOC(f->locale, tname));
|
||||||
|
|
||||||
/* Bäume */
|
/* Bäume */
|
||||||
|
|
|
@ -123,7 +123,13 @@ oldterrain(const struct terrain_type * terrain)
|
||||||
const char *
|
const char *
|
||||||
terrain_name(const struct region * r)
|
terrain_name(const struct region * r)
|
||||||
{
|
{
|
||||||
if (r->terrain->name!=NULL) return r->terrain->name(r);
|
if (r->terrain->name!=NULL) {
|
||||||
|
return r->terrain->name(r);
|
||||||
|
} else if (fval(r->terrain, SEA_REGION)) {
|
||||||
|
if (is_cursed(r->attribs, C_MAELSTROM, 0)) {
|
||||||
|
return "maelstrom";
|
||||||
|
}
|
||||||
|
}
|
||||||
return r->terrain->_name;
|
return r->terrain->_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue