Mercurial > hg > openttd
changeset 10317:551a2f49b6eb draft
(svn r14562) -Fix (r14561): 8 bits are enough. The rest stays reserved.
author | frosch <frosch@openttd.org> |
---|---|
date | Mon, 03 Nov 2008 20:23:51 +0000 |
parents | d4911b3a2163 |
children | 81edf2d9bb09 |
files | src/industry_cmd.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -2089,8 +2089,8 @@ 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); + case 0xF: // Set production to third byte of register 0x100 + i->prod_level = Clamp(GB(GetRegister(0x100), 16, 8), PRODLEVEL_MINIMUM, PRODLEVEL_MAXIMUM); break; } }