mirror of https://github.com/OpenTTD/OpenTTD.git
Add: [Newgrf] Some 60+ Vars for industries that were missed in #6867
This commit is contained in:
parent
1a4c7a4e54
commit
fdaf67d924
|
@ -308,7 +308,9 @@ static uint32 GetCountAndDistanceOfClosestInstance(byte param_setID, byte layout
|
|||
case 0x6A:
|
||||
case 0x6B:
|
||||
case 0x6C:
|
||||
case 0x6D: {
|
||||
case 0x6D:
|
||||
case 0x70:
|
||||
case 0x71: {
|
||||
CargoID cargo = GetCargoTranslation(parameter, this->ro.grffile);
|
||||
int index = this->industry->GetCargoProducedIndex(cargo);
|
||||
if (index < 0) return 0; // invalid cargo
|
||||
|
@ -318,6 +320,8 @@ static uint32 GetCountAndDistanceOfClosestInstance(byte param_setID, byte layout
|
|||
case 0x6B: return this->industry->this_month_transported[index];
|
||||
case 0x6C: return this->industry->last_month_production[index];
|
||||
case 0x6D: return this->industry->last_month_transported[index];
|
||||
case 0x70: return this->industry->production_rate[index];
|
||||
case 0x71: return this->industry->last_month_pct_transported[index];
|
||||
default: NOT_REACHED();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue