Changeset - r7083:89f02d5b9eef
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-06-26 21:17:51
rubidium@openttd.org
(svn r10348) -Fix (r10347): compile errors; do not think it compiles fine when you run make on the wrong working copy.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/industry_cmd.cpp
Show inline comments
 
@@ -1645,13 +1645,13 @@ static void ExtChangeIndustryProduction(
 
						(indspec->behaviour & INDUSTRYBEH_DONT_INCR_PROD) == 0) {
 
					new_prod += max(((RandomRange(50) + 10) * old_prod) >> 8, 1U);
 
				}
 

	
 
				new_prod = clamp(new_prod, 1, 255);
 
				/* Do not stop closing the industry when it has the lowest possible production rate */
 
				if (new_prod == old_prod && && old_prod > 1)) {
 
				if (new_prod == old_prod && old_prod > 1) {
 
					closeit = false;
 
					continue;
 
				}
 

	
 
				percent = new_prod * 100 / old_prod - 100;
 
				i->production_rate[j] = new_prod;
0 comments (0 inline, 0 general)