summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-11-03 19:25:52 +0000
committerfrosch <frosch@openttd.org>2008-11-03 19:25:52 +0000
commit29c4c2d6186633234ab0603225419b55ed61b8b4 (patch)
tree1c04c1969f56674e4e2a1bbd2b4a672ea8d1cb9e /src/industry_cmd.cpp
parent1257ba321446317d70ca32741aa78e1981af4fd5 (diff)
downloadopenttd-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.cpp3
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;
}
}
}