45 if (missionCount > 0) {
51 if (missionCount >= 5)
90 const int HOUR = 3600;
91 const int MISSION_DELAY = 1800;
96 if (info_list.
size() > 0) {
98 base_time = info->
start;
104 start = (int) base_time + MISSION_DELAY;
144 while (++iter && !request) {
164 request =
new(__FILE__,__LINE__)
206 static int assignment_index = 0;
208 if (assignments.
size()) {
209 if (assignment_index >= assignments.
size())
210 assignment_index = 0;
214 request =
new(__FILE__,__LINE__)
229 static int mission_type_index = -1;
230 static int mission_types[16] = {
258 if (mission_type_index < 0)
259 mission_type_index = r;
261 else if (mission_type_index >= 16)
262 mission_type_index = 0;
264 type = mission_types[mission_type_index++];
273 request =
new(__FILE__,__LINE__)
281 static int fighter_mission_index = 0;
282 static int fighter_mission_types[16] = {
305 int type = fighter_mission_types[fighter_mission_index++];
310 if (fighter_mission_index > 15)
311 fighter_mission_index = 0;
315 if (!freight || freight->
CalcValue() < 1)
323 if (!shuttle || shuttle->
CalcValue() < 1)
338 bool airborne =
false;
367 request =
new(__FILE__,__LINE__)