- dritter und letzter commit für die Durchreisemeldungen von Reitern
This commit is contained in:
Enno Rehling 2004-09-08 23:00:48 +00:00
parent 2e4d97f8c8
commit 272eb7fa75
1 changed files with 11 additions and 9 deletions

View File

@ -1335,22 +1335,24 @@ travel(unit * u, region * next, int flucht, region_list ** routep)
m--; m--;
if (m > 0) { if (m > 0) {
region_list *rlist = route; region_list *rlist = route;
char * p = buf;
travelthru(u, first); travelthru(u, first);
while (rlist!=NULL) { while (rlist!=NULL) {
region * r = rlist->data; region * r = rlist->data;
char * p;
travelthru(u, r); rlist = rlist->next;
if (rlist!=route) { if (rlist!=NULL) {
if (rlist->next==NULL) scat(" und "); MSG(("travelthru_trail", "region", r), p, sizeof(buf) - (p-buf),
u->faction->locale, u->faction);
if (rlist->next!=NULL) {
if (rlist->next->data==current) scat(" und ");
else scat(", "); else scat(", ");
} }
p += strlen(p);
p = buf+strlen(buf); }
MSG(("travelthru_trail", "region", r), p, sizeof(buf)-strlen(buf), u->faction->locale, u->faction); travelthru(u, r);
rlist = rlist->next;
} }
} }
ADDMSG(&u->faction->msgs, msg_message("travel", ADDMSG(&u->faction->msgs, msg_message("travel",