Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #167 from Qwatayean/patch-8
Browse files Browse the repository at this point in the history
Combining fleets - #150
  • Loading branch information
mys authored Jun 18, 2018
2 parents 1426381 + d434d25 commit ad4321a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/classes/class.FlyingFleetsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ public function setMissions($missions) {
}

private function getFleets($acsID = false) {
if($this->IsPhalanx) {
/*if($this->IsPhalanx) {
$where = '(fleet_start_id = :planetId AND fleet_start_type = 1 AND fleet_mission != 4) OR
(fleet_end_id = :planetId AND fleet_end_type = 1 AND fleet_mess IN (0, 2))';
$param = array(
':planetId' => $this->planetId
);
} elseif(!empty($acsID)) {
} else*/if(!empty($acsID)) {
$where = 'fleet_group = :acsId';
$param = array(
':acsId' => $acsID
Expand Down Expand Up @@ -120,7 +120,7 @@ private function BuildFleetEventTable($fleetRow, $FleetState)
$Time = 0;
$Rest = 0;

if ($FleetState == 0 && !$this->IsPhalanx && $fleetRow['fleet_group'] != 0)
if ($FleetState == 0 && $fleetRow['fleet_group'] != 0)
{
$acsResult = $this->getFleets($fleetRow['fleet_group']);
$EventString = '';
Expand Down

0 comments on commit ad4321a

Please sign in to comment.