| @@ 114-121 (lines=8) @@ | ||
| 111 | ||
| 112 | // Retrieving flying fleets |
|
| 113 | $objFleetsBashing = FleetList::dbGetFleetListBashing($user['id'], $planet_dst); |
|
| 114 | foreach($objFleetsBashing->_container as $fleetBashing) { |
|
| 115 | // Checking for ACS - each ACS count only once |
|
| 116 | if($fleetBashing->group_id) { |
|
| 117 | $bashing_list["{$user['id']}_{$fleetBashing->group_id}"] = $fleetBashing->time_arrive_to_target; |
|
| 118 | } else { |
|
| 119 | $bashing_list[] = $fleetBashing->time_arrive_to_target; |
|
| 120 | } |
|
| 121 | } |
|
| 122 | ||
| 123 | // Check for joining to ACS - if there are already fleets in ACS no checks should be done |
|
| 124 | if($mission == MT_ACS && $bashing_list["{$user['id']}_{$fleet_group}"]) { |
|
| @@ 1016-1023 (lines=8) @@ | ||
| 1013 | ||
| 1014 | // Retrieving flying fleets |
|
| 1015 | $objFleetsBashing = FleetList::dbGetFleetListBashing($user['id'], $this->fleet->dbTargetRow); |
|
| 1016 | foreach ($objFleetsBashing->_container as $fleetBashing) { |
|
| 1017 | // Checking for ACS - each ACS count only once |
|
| 1018 | if ($fleetBashing->group_id) { |
|
| 1019 | $bashing_list["{$user['id']}_{$fleetBashing->group_id}"] = $fleetBashing->time_arrive_to_target; |
|
| 1020 | } else { |
|
| 1021 | $bashing_list[] = $fleetBashing->time_arrive_to_target; |
|
| 1022 | } |
|
| 1023 | } |
|
| 1024 | ||
| 1025 | // Check for joining to ACS - if there are already fleets in ACS no checks should be done |
|
| 1026 | if ($this->fleet->mission_type == MT_ACS && $bashing_list["{$user['id']}_{$this->fleet->group_id}"]) { |
|