summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
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 /src/industry_gui.cpp
parenta33376b6ca2bdd9f5fdf6a704aef044c06505125 (diff)
downloadopenttd-098756b84b264a9213de998d929854f3da3bd98e.tar.xz
(svn r17198) -Fix [FS#2406]: Accept monthly production values in the scenario editor.
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r--src/industry_gui.cpp2
1 files changed, 1 insertions, 1 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();
}