Codechange: cleanup CargoPacket in terms of variable/function names (#11278)
Over the years, things got reused and changed, making the current
names somewhat unclear in what they actually mean and do.
(cherry picked from commit 30172fc037
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
2890127675
commit
e5673a1756
@@ -33,8 +33,8 @@
|
||||
* @param weight Weight of a single unit of this cargo type in 1/16 ton (62.5 kg).
|
||||
* @param mult Capacity multiplier for vehicles. (8 fractional bits).
|
||||
* @param ip CargoSpec->initial_payment.
|
||||
* @param td1 CargoSpec->transit_days[0].
|
||||
* @param td2 CargoSpec->transit_days[1].
|
||||
* @param td1 CargoSpec->transit_periods[0].
|
||||
* @param td2 CargoSpec->transit_periods[1].
|
||||
* @param freight Cargo type is considered to be freight (affects train freight multiplier).
|
||||
* @param te The effect that delivering this cargo type has on towns. Also affects destination of subsidies.
|
||||
* @param str_plural The name suffix used to populate CargoSpec->name, CargoSpec->quantifier,
|
||||
|
@@ -1286,8 +1286,8 @@ class NIHCargo : public NIHelper {
|
||||
|
||||
seprintf(buffer, lastof(buffer), " Weight: %u, Capacity multiplier: %u", spec->weight, spec->multiplier);
|
||||
output.print(buffer);
|
||||
seprintf(buffer, lastof(buffer), " Initial payment: %d, Current payment: " OTTD_PRINTF64 ", Transit days: (%u, %u)",
|
||||
spec->initial_payment, (int64)spec->current_payment, spec->transit_days[0], spec->transit_days[1]);
|
||||
seprintf(buffer, lastof(buffer), " Initial payment: %d, Current payment: " OTTD_PRINTF64 ", Transit periods: (%u, %u)",
|
||||
spec->initial_payment, (int64)spec->current_payment, spec->transit_periods[0], spec->transit_periods[1]);
|
||||
output.print(buffer);
|
||||
seprintf(buffer, lastof(buffer), " Freight: %s, Town effect: %u", spec->is_freight ? "yes" : "no", spec->town_effect);
|
||||
output.print(buffer);
|
||||
|
Reference in New Issue
Block a user