Changeset - r10317:531c030f0478
[Not reviewed]
master
0 1 0
frosch - 16 years ago 2008-11-03 20:23:51
frosch@openttd.org
(svn r14562) -Fix (r14561): 8 bits are enough. The rest stays reserved.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/industry_cmd.cpp
Show inline comments
 
@@ -2089,8 +2089,8 @@ static void ChangeIndustryProduction(Ind
 
				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;
 
			}
 
		}
0 comments (0 inline, 0 general)