+ if (e->u.rail.running_cost_class == INVALID_PRICE) { + const Train *a = v; + + do { + cost += a->purchase_cost_or_what_is_called / 8; + a = a->HasArticulatedPart() ? a->GetNextArticulatedPart() : NULL; + } while (a != NULL); + continue; + }