- 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--;
if (m > 0) {
region_list *rlist = route;
char * p = buf;
travelthru(u, first);
while (rlist!=NULL) {
region * r = rlist->data;
char * p;
travelthru(u, r);
if (rlist!=route) {
if (rlist->next==NULL) scat(" und ");
else scat(", ");
}
p = buf+strlen(buf);
MSG(("travelthru_trail", "region", r), p, sizeof(buf)-strlen(buf), u->faction->locale, u->faction);
rlist = rlist->next;
if (rlist!=NULL) {
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(", ");
}
p += strlen(p);
}
travelthru(u, r);
}
}
ADDMSG(&u->faction->msgs, msg_message("travel",