mirror of https://github.com/OpenTTD/OpenTTD
(svn r17198) -Fix [FS#2406]: Accept monthly production values in the scenario editor.
parent
a33376b6ca
commit
098756b84b
|
@ -664,7 +664,7 @@ public:
|
||||||
Industry *i = Industry::Get(this->window_number);
|
Industry *i = Industry::Get(this->window_number);
|
||||||
int line = this->editbox_line;
|
int line = this->editbox_line;
|
||||||
|
|
||||||
i->production_rate[line] = ClampU(atoi(str), 0, 255);
|
i->production_rate[line] = ClampU(atoi(str) / 8, 0, 255);
|
||||||
UpdateIndustryProduction(i);
|
UpdateIndustryProduction(i);
|
||||||
this->SetDirty();
|
this->SetDirty();
|
||||||
}
|
}
|
||||||
|
|
|
@ -2557,7 +2557,7 @@ STR_INDUSTRY_VIEW_PRODUCES_CARGO :{BLACK}Produces
|
||||||
STR_INDUSTRY_VIEW_PRODUCES_CARGO_CARGO :{BLACK}Produces: {YELLOW}{STRING}{STRING}, {STRING}{STRING}
|
STR_INDUSTRY_VIEW_PRODUCES_CARGO_CARGO :{BLACK}Produces: {YELLOW}{STRING}{STRING}, {STRING}{STRING}
|
||||||
############ range for produces ends
|
############ range for produces ends
|
||||||
|
|
||||||
STR_CONFIG_GAME_PRODUCTION :{WHITE}Change production
|
STR_CONFIG_GAME_PRODUCTION :{WHITE}Change production (multiple of 8, up to 2040)
|
||||||
|
|
||||||
# Vehicle lists
|
# Vehicle lists
|
||||||
STR_VEHICLE_LIST_TRAIN_CAPTION :{WHITE}{STRING1} - {COMMA} Train{P "" s}
|
STR_VEHICLE_LIST_TRAIN_CAPTION :{WHITE}{STRING1} - {COMMA} Train{P "" s}
|
||||||
|
|
Loading…
Reference in New Issue