equal
deleted
inserted
replaced
1237 prob = 0x10000 / 1500; |
1237 prob = 0x10000 / 1500; |
1238 if (st->airport_type == AT_SMALL && (AircraftVehInfo(v->engine_type)->subtype & 2) && !_cheats.no_jetcrash.value) { |
1238 if (st->airport_type == AT_SMALL && (AircraftVehInfo(v->engine_type)->subtype & 2) && !_cheats.no_jetcrash.value) { |
1239 prob = 0x10000 / 20; |
1239 prob = 0x10000 / 20; |
1240 } |
1240 } |
1241 |
1241 |
1242 if ((uint16)Random() > prob) |
1242 if (GB(Random(), 0, 16) > prob) return; |
1243 return; |
|
1244 |
1243 |
1245 // Crash the airplane. Remove all goods stored at the station. |
1244 // Crash the airplane. Remove all goods stored at the station. |
1246 for(i=0; i!=NUM_CARGO; i++) { |
1245 for(i=0; i!=NUM_CARGO; i++) { |
1247 st->goods[i].rating = 1; |
1246 st->goods[i].rating = 1; |
1248 st->goods[i].waiting_acceptance &= ~0xFFF; |
1247 st->goods[i].waiting_acceptance &= ~0xFFF; |