src/newgrf_industries.cpp
changeset 8427 792ea80ce61e
parent 8415 41a623a9fdb5
child 8436 c2600da0d3e3
equal deleted inserted replaced
8426:dcc4a852de3c 8427:792ea80ce61e
   464 		case 0x8B: return GetClosestWaterDistance(tile, (GetIndustrySpec(industry->type)->behaviour & INDUSTRYBEH_BUILT_ONWATER) == 0);
   464 		case 0x8B: return GetClosestWaterDistance(tile, (GetIndustrySpec(industry->type)->behaviour & INDUSTRYBEH_BUILT_ONWATER) == 0);
   465 
   465 
   466 		/* Square of Euclidian distance from town */
   466 		/* Square of Euclidian distance from town */
   467 		case 0x8D: return min(DistanceSquare(industry->town->xy, tile), 65535);
   467 		case 0x8D: return min(DistanceSquare(industry->town->xy, tile), 65535);
   468 
   468 
   469 		/* 32 random bits */
   469 		/* 32 random bits TODO! Wait for a better scheme that will not cause problems, MP desyncs and asserts */
   470 		case 0x8F: return Random();
   470 		// case 0x8F: return Random();
   471 	}
   471 	}
   472 
   472 
   473 	/* None of the special ones, so try the general ones */
   473 	/* None of the special ones, so try the general ones */
   474 	return IndustryGetVariable(object, variable, parameter, available);
   474 	return IndustryGetVariable(object, variable, parameter, available);
   475 }
   475 }