fix terrain type in detectocean message.
This commit is contained in:
Enno Rehling 2015-12-17 20:36:21 +01:00
parent 18c0c235db
commit 30acc38d53
2 changed files with 6 additions and 5 deletions

View File

@ -2899,9 +2899,10 @@
<type> <type>
<arg name="unit" type="unit"/> <arg name="unit" type="unit"/>
<arg name="region" type="region"/> <arg name="region" type="region"/>
<arg name="terrain" type="string"/>
</type> </type>
<text locale="de">"$unit($unit) entdeckt, dass $region($region) $terrain($region) ist."</text> <text locale="de">"$unit($unit) entdeckt, dass $region($region) $localize($terrain) ist."</text>
<text locale="en">"$unit($unit) discovered that $region($region) is $terrain($region)."</text> <text locale="en">"$unit($unit) discovered that $region($region) is $localize($terrain)."</text>
</message> </message>
<message name="leftship" section="movement"> <message name="leftship" section="movement">
<type> <type>

View File

@ -1592,13 +1592,13 @@ static const region_list *travel_route(unit * u,
else if ((u_race(u)->flags & RCF_WALK) == 0) { else if ((u_race(u)->flags & RCF_WALK) == 0) {
/* Spezialeinheiten, die nicht laufen können. */ /* Spezialeinheiten, die nicht laufen können. */
ADDMSG(&u->faction->msgs, msg_message("detectocean", ADDMSG(&u->faction->msgs, msg_message("detectocean",
"unit region", u, next)); "unit region terrain", u, next, terrain_name(next)));
break; break;
} }
else if (landing) { else if (landing) {
/* wir sind diese woche angelandet */ /* wir sind diese woche angelandet */
ADDMSG(&u->faction->msgs, msg_message("detectocean", ADDMSG(&u->faction->msgs, msg_message("detectocean",
"unit region", u, next)); "unit region terrain", u, next, terrain_name(next)));
break; break;
} }
} }
@ -1607,7 +1607,7 @@ static const region_list *travel_route(unit * u,
* Pferde betreten werden. */ * Pferde betreten werden. */
if (!(canswim(u) || canfly(u))) { if (!(canswim(u) || canfly(u))) {
ADDMSG(&u->faction->msgs, msg_message("detectocean", ADDMSG(&u->faction->msgs, msg_message("detectocean",
"unit region", u, next)); "unit region terrain", u, next, terrain_name(next)));
break; break;
} }
} }