Transferring commodities from tenders to targets continues with the
next tender when a target can't hold this kind of commodity.
Transferring them from targets to tenders fails (ltend) or stops
tending (tend) when a tender can't hold this kind of commodity. Has
always been that way.
Change the latter to continue with the next tender.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
if (maxtender == 0) {
pr("A %s cannot hold any %s\n",
mchr[(int)tender.shp_type].m_name, ip->i_name);
- return RET_FAIL;
+ continue;
}
if (!snxtitem(&targets, EF_LAND,
player->argp[4], "Units to be tended? "))
if (maxtender == 0) {
pr("A %s cannot hold any %s\n",
mchr[(int)tender.shp_type].m_name, ip->i_name);
- break;
+ continue;
}
if (!snxtitem(&targets, EF_SHIP,
player->argp[4], "Ships to be tended? "))
Play#1 input tend u 170/171 -1 150
Play#1 command tend
Play#1 output Play#1 1 A frg frigate cannot hold any uncompensated workers
+ Play#1 output Play#1 1 A sb submarine cannot hold any uncompensated workers
Play#1 output Play#1 6 0 401
Play#1 input tend s 150/152 5 t
Play#1 command tend
Play#1 input ltend i 200/201 -1 350/352
Play#1 command ltend
Play#1 output Play#1 1 A cs cargo ship cannot hold any iron ore
- Play#1 output Play#1 1 command failed
+ Play#1 output Play#1 1 A cs cargo ship cannot hold any iron ore
Play#1 output Play#1 6 0 364
Play#1 input ltend c 200/201 -1 350/352
Play#1 command ltend