Changeset - r7944:5ff73e0e3c45
[Not reviewed]
master
0 1 0
glx - 16 years ago 2007-11-23 04:17:41
glx@openttd.org
(svn r11499) -Fix (r11144): mul/div factor were wrong (off by two)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/industry_cmd.cpp
Show inline comments
 
@@ -2018,9 +2018,9 @@ static void ChangeIndustryProduction(Ind
 
				case 0x3: closeit = true; break;  // The industry announces imminent closure, and is physically removed from the map next month.
 
				case 0x4: standard = true; break; // Do the standard random production change as if this industry was a primary one.
 
				case 0x5: case 0x6: case 0x7:     // Divide production by 4, 8, 16
 
				case 0x8: div = res - 0x5; break; // Divide production by 32
 
				case 0x8: div = res - 0x3; break; // Divide production by 32
 
				case 0x9: case 0xA: case 0xB:     // Multiply production by 4, 8, 16
 
				case 0xC: mul = res - 0x9; break; // Multiply production by 32
 
				case 0xC: mul = res - 0x7; break; // Multiply production by 32
 
			}
 
		}
 
	}
0 comments (0 inline, 0 general)