summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-08-16 07:28:00 +0000
committeralberth <alberth@openttd.org>2009-08-16 07:28:00 +0000
commit098756b84b264a9213de998d929854f3da3bd98e (patch)
tree37d230fc591f779195b6480c5b78c4c9e566b32f
parenta33376b6ca2bdd9f5fdf6a704aef044c06505125 (diff)
downloadopenttd-098756b84b264a9213de998d929854f3da3bd98e.tar.xz
(svn r17198) -Fix [FS#2406]: Accept monthly production values in the scenario editor.
-rw-r--r--src/industry_gui.cpp2
-rw-r--r--src/lang/english.txt2
2 files changed, 2 insertions, 2 deletions
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}