equal
deleted
inserted
replaced
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 } |