src/aircraft_cmd.cpp
branchnoai
changeset 9505 9711235f5693
parent 9493 b38bfff5f3a3
child 9574 698395509d12
equal deleted inserted replaced
9504:de4993fa3d98 9505:9711235f5693
  1406 	}
  1406 	}
  1407 
  1407 
  1408 	if (GB(Random(), 0, 16) > prob) return;
  1408 	if (GB(Random(), 0, 16) > prob) return;
  1409 
  1409 
  1410 	/* Crash the airplane. Remove all goods stored at the station. */
  1410 	/* Crash the airplane. Remove all goods stored at the station. */
  1411 	for (uint i = 0; i != NUM_CARGO; i++) {
  1411 	for (CargoID i = 0; i < NUM_CARGO; i++) {
  1412 		st->goods[i].rating = 1;
  1412 		st->goods[i].rating = 1;
  1413 		SB(st->goods[i].waiting_acceptance, 0, 12, 0);
  1413 		SB(st->goods[i].waiting_acceptance, 0, 12, 0);
  1414 	}
  1414 	}
  1415 
  1415 
  1416 	CrashAirplane(v);
  1416 	CrashAirplane(v);