diff options
author | frosch <frosch@openttd.org> | 2008-11-03 19:25:52 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-11-03 19:25:52 +0000 |
commit | 29c4c2d6186633234ab0603225419b55ed61b8b4 (patch) | |
tree | 1c04c1969f56674e4e2a1bbd2b4a672ea8d1cb9e /src/industry_cmd.cpp | |
parent | 1257ba321446317d70ca32741aa78e1981af4fd5 (diff) | |
download | openttd-29c4c2d6186633234ab0603225419b55ed61b8b4.tar.xz |
(svn r14561) -Feature(ette)[FS#2334]: Add result 0x0F to callbacks 0x29/0x35. (Yexo)
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index b5473de42..ebc13dfed 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -2089,6 +2089,9 @@ static void ChangeIndustryProduction(Industry *i, bool monthly) case 0xE: // increment production increment = res == 0x0D ? -1 : 1; break; + case 0xF: // Set production to higher word of register 0x100 + i->prod_level = Clamp(GB(GetRegister(0x100), 16, 16), PRODLEVEL_MINIMUM, PRODLEVEL_MAXIMUM); + break; } } } |