From 098756b84b264a9213de998d929854f3da3bd98e Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 16 Aug 2009 07:28:00 +0000 Subject: (svn r17198) -Fix [FS#2406]: Accept monthly production values in the scenario editor. --- src/industry_gui.cpp | 2 +- src/lang/english.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index c6b15a6c4..ca7a51b0b 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -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(); } diff --git a/src/lang/english.txt b/src/lang/english.txt index 2303a8e0d..2ffd88824 100644 --- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -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} -- cgit v1.2.3-54-g00ecf