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 | ec4b30f9d919d3bb4425920fed9941ea853617ba (patch) | |
tree | 1c04c1969f56674e4e2a1bbd2b4a672ea8d1cb9e | |
parent | 7dd0b0dc07d4d5323ad229b064c5fd9e1fd44f61 (diff) | |
download | openttd-ec4b30f9d919d3bb4425920fed9941ea853617ba.tar.xz |
(svn r14561) -Feature(ette)[FS#2334]: Add result 0x0F to callbacks 0x29/0x35. (Yexo)
-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; } } } |