AI_CountAllTorpedos

Counts torpedos and returns the result.

function AI_CountAllTorpedos; wcp;

  // testing if enough torpedos are left in order 
  // to fullfill mission objectives...
  torps := AI_CountAllTorpedos;
  if (torps < m_AliveCapShips) then
    SF_SetMissionFailure;