changeset 10316:d4911b3a2163 draft

(svn r14561) -Feature(ette)[FS#2334]: Add result 0x0F to callbacks 0x29/0x35. (Yexo)
author frosch <frosch@openttd.org>
date Mon, 03 Nov 2008 19:25:52 +0000
parents a97914205bd6
children 551a2f49b6eb
files src/industry_cmd.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -2089,6 +2089,9 @@
 				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;
 			}
 		}
 	}