mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-05 05:42:42 +00:00
(svn r14562) -Fix (r14561): 8 bits are enough. The rest stays reserved.
This commit is contained in:
parent
ec4b30f9d9
commit
e1bf231727
@ -2089,8 +2089,8 @@ 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);
|
||||
case 0xF: // Set production to third byte of register 0x100
|
||||
i->prod_level = Clamp(GB(GetRegister(0x100), 16, 8), PRODLEVEL_MINIMUM, PRODLEVEL_MAXIMUM);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user