equal
deleted
inserted
replaced
1084 p->ai.timeout_counter = 0; |
1084 p->ai.timeout_counter = 0; |
1085 } |
1085 } |
1086 |
1086 |
1087 static void AiWantTrainRoute(Player *p) |
1087 static void AiWantTrainRoute(Player *p) |
1088 { |
1088 { |
1089 uint16 r; |
1089 uint16 r = GB(Random(), 0, 16); |
|
1090 |
1090 p->ai.railtype_to_use = GetBestRailtype(p); |
1091 p->ai.railtype_to_use = GetBestRailtype(p); |
1091 r = (uint16)Random(); |
|
1092 |
1092 |
1093 if (r > 0xD000) { |
1093 if (r > 0xD000) { |
1094 AiWantLongIndustryRoute(p); |
1094 AiWantLongIndustryRoute(p); |
1095 } else if (r > 0x6000) { |
1095 } else if (r > 0x6000) { |
1096 AiWantMediumIndustryRoute(p); |
1096 AiWantMediumIndustryRoute(p); |
1347 p->ai.timeout_counter = 0; |
1347 p->ai.timeout_counter = 0; |
1348 } |
1348 } |
1349 |
1349 |
1350 static void AiWantRoadRoute(Player *p) |
1350 static void AiWantRoadRoute(Player *p) |
1351 { |
1351 { |
1352 uint16 r = (uint16)Random(); |
1352 uint16 r = GB(Random(), 0, 16); |
1353 |
1353 |
1354 if (r > 0x4000) { |
1354 if (r > 0x4000) { |
1355 AiWantLongRoadIndustryRoute(p); |
1355 AiWantLongRoadIndustryRoute(p); |
1356 } else if (r > 0x2000) { |
1356 } else if (r > 0x2000) { |
1357 AiWantMediumRoadIndustryRoute(p); |
1357 AiWantMediumRoadIndustryRoute(p); |