(svn r17198) -Fix [FS#2406]: Accept monthly production values in the scenario editor.

This commit is contained in:
alberth 2009-08-16 07:28:00 +00:00
parent a33376b6ca
commit 098756b84b
2 changed files with 2 additions and 2 deletions

View File

@ -664,7 +664,7 @@ public:
Industry *i = Industry::Get(this->window_number);
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);
this->SetDirty();
}

View File

@ -2557,7 +2557,7 @@ STR_INDUSTRY_VIEW_PRODUCES_CARGO :{BLACK}Produces
STR_INDUSTRY_VIEW_PRODUCES_CARGO_CARGO :{BLACK}Produces: {YELLOW}{STRING}{STRING}, {STRING}{STRING}
############ 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
STR_VEHICLE_LIST_TRAIN_CAPTION :{WHITE}{STRING1} - {COMMA} Train{P "" s}