forked from github/server
Da es nicht geklappt hat, noch ein Versuch (off by one region)
This commit is contained in:
parent
5fe3bb9aba
commit
2e4d97f8c8
|
@ -1337,21 +1337,20 @@ travel(unit * u, region * next, int flucht, region_list ** routep)
|
||||||
region_list *rlist = route;
|
region_list *rlist = route;
|
||||||
|
|
||||||
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);
|
travelthru(u, r);
|
||||||
rlist=rlist->next;
|
if (rlist!=route) {
|
||||||
if (rlist!=NULL) {
|
if (rlist->next==NULL) scat(" und ");
|
||||||
char * p;
|
else scat(", ");
|
||||||
if (r!=route->data) {
|
|
||||||
if (rlist->next==NULL) scat(" und ");
|
|
||||||
else scat(", ");
|
|
||||||
}
|
|
||||||
|
|
||||||
p = buf+strlen(buf);
|
|
||||||
MSG(("travelthru_trail", "region", rlist->data), p, sizeof(buf)-strlen(buf), u->faction->locale, u->faction);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p = buf+strlen(buf);
|
||||||
|
MSG(("travelthru_trail", "region", r), p, sizeof(buf)-strlen(buf), u->faction->locale, u->faction);
|
||||||
|
rlist = rlist->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ADDMSG(&u->faction->msgs, msg_message("travel",
|
ADDMSG(&u->faction->msgs, msg_message("travel",
|
||||||
|
|
Loading…
Reference in New Issue