From ec4b30f9d919d3bb4425920fed9941ea853617ba Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 3 Nov 2008 19:25:52 +0000 Subject: [PATCH] (svn r14561) -Feature(ette)[FS#2334]: Add result 0x0F to callbacks 0x29/0x35. (Yexo) --- src/industry_cmd.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index b5473de42f..ebc13dfed2 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; } } }