Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — master ( 3938d8...8d8584 )
by Dan
29s queued 20s
created
templates/Default/engine/Default/includes/Head.inc 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,8 @@
 block discarded – undo
1 1
 <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
2
-<title><?php echo PAGE_TITLE; ?><?php if (isset($GameName)) echo ": $GameName"; ?></title>
2
+<title><?php echo PAGE_TITLE; ?><?php if (isset($GameName)) {
3
+	echo ": $GameName";
4
+}
5
+?></title>
3 6
 <meta http-equiv="pragma" content="no-cache" /><?php
4 7
 if (!is_object($ThisAccount) || $ThisAccount->isDefaultCSSEnabled()) { ?>
5 8
 	<link rel="stylesheet" type="text/css" href="<?php echo $CSSLink; ?>" />
Please login to merge, or discard this patch.
engine/Default/shop_goods.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@
 block discarded – undo
50 50
 			//get base for ports that dont happen to trade that good
51 51
 			$GOODS = Globals::getGoods();
52 52
 			$fine = $totalFine = $port->getLevel() *
53
-			    (($ship->getCargo(GOODS_SLAVES) * $GOODS[GOODS_SLAVES]['BasePrice']) +
54
-			     ($ship->getCargo(GOODS_WEAPONS) * $GOODS[GOODS_WEAPONS]['BasePrice']) +
55
-			     ($ship->getCargo(GOODS_NARCOTICS) * $GOODS[GOODS_NARCOTICS]['BasePrice']));
53
+				(($ship->getCargo(GOODS_SLAVES) * $GOODS[GOODS_SLAVES]['BasePrice']) +
54
+				 ($ship->getCargo(GOODS_WEAPONS) * $GOODS[GOODS_WEAPONS]['BasePrice']) +
55
+				 ($ship->getCargo(GOODS_NARCOTICS) * $GOODS[GOODS_NARCOTICS]['BasePrice']));
56 56
 			$player->increaseHOF($ship->getCargo(GOODS_SLAVES) + $ship->getCargo(GOODS_WEAPONS) + $ship->getCargo(GOODS_NARCOTICS), array('Trade', 'Search', 'Caught', 'Goods Confiscated'), HOF_PUBLIC);
57 57
 			$player->increaseHOF($totalFine, array('Trade', 'Search', 'Caught', 'Amount Fined'), HOF_PUBLIC);
58 58
 			$template->assign('TotalFine', $totalFine);
Please login to merge, or discard this patch.
Braces   +17 added lines, -15 removed lines patch added patch discarded remove patch
@@ -6,8 +6,9 @@  discard block
 block discarded – undo
6 6
 $port = $player->getSectorPort();
7 7
 
8 8
 $tradeable = checkPortTradeable($port, $player);
9
-if ($tradeable !== true)
9
+if ($tradeable !== true) {
10 10
 	create_error($tradeable);
11
+}
11 12
 
12 13
 // topic
13 14
 $template->assign('PageTopic', 'Port In Sector #' . $player->getSectorID());
@@ -23,17 +24,19 @@  discard block
 block discarded – undo
23 24
 //The player is sent here after trading and sees this if his offer is accepted.
24 25
 if (!empty($var['trade_msg'])) {
25 26
 	$template->assign('TradeMsg', $var['trade_msg']);
26
-}
27
-elseif ($player->getLastPort() != $player->getSectorID()) {
27
+} elseif ($player->getLastPort() != $player->getSectorID()) {
28 28
 	// test if we are searched, but only if we hadn't a previous trade here
29 29
 
30 30
 	$base_chance = 15;
31
-	if ($port->hasGood(GOODS_SLAVES))
32
-		$base_chance -= 4;
33
-	if ($port->hasGood(GOODS_WEAPONS))
34
-		$base_chance -= 4;
35
-	if ($port->hasGood(GOODS_NARCOTICS))
36
-		$base_chance -= 4;
31
+	if ($port->hasGood(GOODS_SLAVES)) {
32
+			$base_chance -= 4;
33
+	}
34
+	if ($port->hasGood(GOODS_WEAPONS)) {
35
+			$base_chance -= 4;
36
+	}
37
+	if ($port->hasGood(GOODS_NARCOTICS)) {
38
+			$base_chance -= 4;
39
+	}
37 40
 
38 41
 	if ($ship->isUnderground()) {
39 42
 		$base_chance -= 4;
@@ -64,11 +67,11 @@  discard block
 block discarded – undo
64 67
 					// because credits is 0 it will take money from bank
65 68
 					$player->decreaseBank(min($fine, $player->getBank()));
66 69
 					// leave insurance
67
-					if ($player->getBank() < 5000)
68
-						$player->setBank(5000);
70
+					if ($player->getBank() < 5000) {
71
+											$player->setBank(5000);
72
+					}
69 73
 				}
70
-			}
71
-			else {
74
+			} else {
72 75
 				$player->decreaseCredits($fine);
73 76
 			}
74 77
 
@@ -80,8 +83,7 @@  discard block
 block discarded – undo
80 83
 			$ship->setCargo(GOODS_NARCOTICS, 0);
81 84
 			$account->log(LOG_TYPE_TRADING, 'Player gets caught with illegals', $player->getSectorID());
82 85
 
83
-		}
84
-		else {
86
+		} else {
85 87
 			$template->assign('IllegalsFound', false);
86 88
 			$player->increaseHOF(1, array('Trade', 'Search', 'Times Found Innocent'), HOF_PUBLIC);
87 89
 			$player->increaseAlignment(1);
Please login to merge, or discard this patch.
engine/Default/sector_jump_processing.php 1 patch
Braces   +20 added lines, -13 removed lines patch added patch discarded remove patch
@@ -4,8 +4,11 @@  discard block
 block discarded – undo
4 4
 	create_error('You cannot move until the game has started!');
5 5
 }
6 6
 
7
-if (isset($_REQUEST['target'])) $target = trim($_REQUEST['target']);
8
-else $target = $var['target'];
7
+if (isset($_REQUEST['target'])) {
8
+	$target = trim($_REQUEST['target']);
9
+} else {
10
+	$target = $var['target'];
11
+}
9 12
 
10 13
 //allow hidden players (admins that don't play) to move without pinging, hitting mines, losing turns
11 14
 if (in_array($player->getAccountID(), Globals::getHiddenPlayers())) {
@@ -20,18 +23,22 @@  discard block
 block discarded – undo
20 23
 }
21 24
 
22 25
 // you can't move while on planet
23
-if ($player->isLandedOnPlanet())
26
+if ($player->isLandedOnPlanet()) {
24 27
 	create_error('You are on a planet! You must launch first!');
28
+}
25 29
 
26 30
 // if no 'target' is given we forward to plot
27
-if (empty($target))
31
+if (empty($target)) {
28 32
 	create_error('Where do you want to go today?');
33
+}
29 34
 
30
-if (!is_numeric($target))
35
+if (!is_numeric($target)) {
31 36
 	create_error('Please enter only numbers!');
37
+}
32 38
 	
33
-if ($player->getSectorID() == $target)
39
+if ($player->getSectorID() == $target) {
34 40
 	create_error('Hmmmm...if ' . $player->getSectorID() . '=' . $target . ' then that means...YOU\'RE ALREADY THERE! *cough*you\'re real smart*cough*');
41
+}
35 42
 
36 43
 if (!SmrSector::sectorExists($player->getGameID(), $target)) {
37 44
 	create_error('The target sector doesn\'t exist!');
@@ -60,8 +67,9 @@  discard block
 block discarded – undo
60 67
 $maxMisjump = $jumpInfo['max_misjump'];
61 68
 
62 69
 // check for turns
63
-if ($player->getTurns() < $turnsToJump)
70
+if ($player->getTurns() < $turnsToJump) {
64 71
 	create_error('You don\'t have enough turns for that jump!');
72
+}
65 73
 
66 74
 // send scout msg
67 75
 $sector->leavingSector($player, MOVEMENT_JUMP);
@@ -76,12 +84,12 @@  discard block
 block discarded – undo
76 84
 	}
77 85
 		
78 86
 	$misjumpSector = array_rand($distances[$misjump]);
79
-	if ($misjumpSector == null)
80
-		throw new Exception('Misjump sector is null, distances: ' . var_export($distances, true));
87
+	if ($misjumpSector == null) {
88
+			throw new Exception('Misjump sector is null, distances: ' . var_export($distances, true));
89
+	}
81 90
 	$player->setSectorID($misjumpSector);
82 91
 	unset($distances);
83
-}
84
-else { // we hit it. exactly
92
+} else { // we hit it. exactly
85 93
 	$player->setSectorID($targetSector->getSectorID());
86 94
 }
87 95
 $player->takeTurns($turnsToJump, $turnsToJump);
@@ -118,8 +126,7 @@  discard block
 block discarded – undo
118 126
 		$container = create_container('skeleton.php', 'current_sector.php');
119 127
 		$container['msg'] = 'You have just flown past a sprinkle of mines.<br />Because of your newbie status you have been spared from the harsh reality of the forces.';
120 128
 		forward($container);
121
-	}
122
-	else {
129
+	} else {
123 130
 		$container = create_container('forces_attack_processing.php');
124 131
 		$container['action'] = 'bump';
125 132
 		$container['owner_id'] = $mineOwnerID;
Please login to merge, or discard this patch.
admin/Default/location_edit.php 1 patch
Braces   +19 added lines, -14 removed lines patch added patch discarded remove patch
@@ -5,21 +5,27 @@  discard block
 block discarded – undo
5 5
 if (isset($var['location_type_id'])) {
6 6
 	$location = SmrLocation::getLocation($var['location_type_id']);
7 7
 	if (isset($_REQUEST['save'])) {
8
-		if ($_REQUEST['add_ship_id'] != 0)
9
-			$location->addShipSold($_REQUEST['add_ship_id']);
10
-		if ($_REQUEST['add_weapon_id'] != 0)
11
-			$location->addWeaponSold($_REQUEST['add_weapon_id']);
12
-		if ($_REQUEST['add_hardware_id'] != 0)
13
-			$location->addHardwareSold($_REQUEST['add_hardware_id']);
14
-		if (isset($_REQUEST['remove_ships']) && is_array($_REQUEST['remove_ships']))
15
-			foreach ($_REQUEST['remove_ships'] as $shipTypeID)
8
+		if ($_REQUEST['add_ship_id'] != 0) {
9
+					$location->addShipSold($_REQUEST['add_ship_id']);
10
+		}
11
+		if ($_REQUEST['add_weapon_id'] != 0) {
12
+					$location->addWeaponSold($_REQUEST['add_weapon_id']);
13
+		}
14
+		if ($_REQUEST['add_hardware_id'] != 0) {
15
+					$location->addHardwareSold($_REQUEST['add_hardware_id']);
16
+		}
17
+		if (isset($_REQUEST['remove_ships']) && is_array($_REQUEST['remove_ships'])) {
18
+					foreach ($_REQUEST['remove_ships'] as $shipTypeID)
16 19
 				$location->removeShipSold($shipTypeID);
17
-		if (isset($_REQUEST['remove_weapons']) && is_array($_REQUEST['remove_weapons']))
18
-			foreach ($_REQUEST['remove_weapons'] as $weaponTypeID)
20
+		}
21
+		if (isset($_REQUEST['remove_weapons']) && is_array($_REQUEST['remove_weapons'])) {
22
+					foreach ($_REQUEST['remove_weapons'] as $weaponTypeID)
19 23
 				$location->removeWeaponSold($weaponTypeID);
20
-		if (isset($_REQUEST['remove_hardware']) && is_array($_REQUEST['remove_hardware']))
21
-			foreach ($_REQUEST['remove_hardware'] as $hardwareTypeID)
24
+		}
25
+		if (isset($_REQUEST['remove_hardware']) && is_array($_REQUEST['remove_hardware'])) {
26
+					foreach ($_REQUEST['remove_hardware'] as $hardwareTypeID)
22 27
 				$location->removeHardwareSold($hardwareTypeID);
28
+		}
23 29
 
24 30
 		$location->setFed(isset($_REQUEST['fed']));
25 31
 		$location->setBar(isset($_REQUEST['bar']));
@@ -41,7 +47,6 @@  discard block
 block discarded – undo
41 47
 														'Name' => $db->getField('hardware_name'));
42 48
 	}
43 49
 	$template->assign('AllHardware', $hardware);
44
-}
45
-else {
50
+} else {
46 51
 	$template->assign('Locations', SmrLocation::getAllLocations());
47 52
 }
Please login to merge, or discard this patch.
htdocs/map_galaxy.php 1 patch
Braces   +6 added lines, -8 removed lines patch added patch discarded remove patch
@@ -35,8 +35,7 @@  discard block
 block discarded – undo
35 35
 			header('location: /error.php?msg=Invalid sector ID');
36 36
 			exit;
37 37
 		}
38
-	}
39
-	else if (isset($_REQUEST['galaxy_id'])) {
38
+	} else if (isset($_REQUEST['galaxy_id'])) {
40 39
 		$galaxyID = $_REQUEST['galaxy_id'];
41 40
 		if (!is_numeric($galaxyID)) {
42 41
 			header('location: /error.php?msg=Galaxy ID was not a number.');
@@ -44,8 +43,7 @@  discard block
 block discarded – undo
44 43
 		}
45 44
 		try {
46 45
 			$galaxy = SmrGalaxy::getGalaxy(SmrSession::getGameID(), $galaxyID);
47
-		}
48
-		catch (Exception $e) {
46
+		} catch (Exception $e) {
49 47
 			header('location: /error.php?msg=Invalid galaxy ID');
50 48
 			exit;
51 49
 		}
@@ -93,8 +91,9 @@  discard block
 block discarded – undo
93 91
 
94 92
 	$template->assign('Title', 'Galaxy Map');
95 93
 
96
-	if ($account->getCssLink() != null)
97
-		$template->assign('ExtraCSSLink', $account->getCssLink());
94
+	if ($account->getCssLink() != null) {
95
+			$template->assign('ExtraCSSLink', $account->getCssLink());
96
+	}
98 97
 	$template->assign('CSSLink', $account->getCssUrl());
99 98
 	$template->assign('CSSColourLink', $account->getCssColourUrl());
100 99
 	$template->assign('FontSize', $account->getFontSize() - 20);
@@ -110,7 +109,6 @@  discard block
 block discarded – undo
110 109
 	$template->assign('AJAX_ENABLE_REFRESH', false);
111 110
 
112 111
 	$template->display('GalaxyMap.inc');
113
-}
114
-catch (Throwable $e) {
112
+} catch (Throwable $e) {
115 113
 	handleException($e);
116 114
 }
Please login to merge, or discard this patch.
engine/Default/forces_drop_processing.php 1 patch
Braces   +52 added lines, -46 removed lines patch added patch discarded remove patch
@@ -125,8 +125,7 @@  discard block
 block discarded – undo
125 125
 	if ($change_combat_drones > 0) {
126 126
 		$ship->decreaseCDs($change_combat_drones, true);
127 127
 		$forces->addCDs($change_combat_drones);
128
-	}
129
-	else {
128
+	} else {
130 129
 		$ship->increaseCDs(-$change_combat_drones, true);
131 130
 		$forces->takeCDs(-$change_combat_drones);
132 131
 	}
@@ -136,8 +135,7 @@  discard block
 block discarded – undo
136 135
 	if ($change_scout_drones > 0) {
137 136
 		$ship->decreaseSDs($change_scout_drones);
138 137
 		$forces->addSDs($change_scout_drones);
139
-	}
140
-	else {
138
+	} else {
141 139
 		$ship->increaseSDs(-$change_scout_drones);
142 140
 		$forces->takeSDs(-$change_scout_drones);
143 141
 	}
@@ -151,8 +149,7 @@  discard block
 block discarded – undo
151 149
 			$ship->decloak();
152 150
 			$player->giveTurns(1);
153 151
 		}
154
-	}
155
-	else {
152
+	} else {
156 153
 		$ship->increaseMines(-$change_mines);
157 154
 		$forces->takeMines(-$change_mines);
158 155
 	}
@@ -161,61 +158,70 @@  discard block
 block discarded – undo
161 158
 // message to send out
162 159
 if ($forces->getOwnerID() != $player->getAccountID() && $forces->getOwner()->isForceDropMessages()) {
163 160
 	$mines_message = '';
164
-	if ($change_mines > 0)
165
-		$mines_message = 'added ' . $change_mines . ' mine';
166
-	elseif ($change_mines < 0)
167
-		$mines_message = 'removed ' . abs($change_mines) . ' mine';
161
+	if ($change_mines > 0) {
162
+			$mines_message = 'added ' . $change_mines . ' mine';
163
+	} elseif ($change_mines < 0) {
164
+			$mines_message = 'removed ' . abs($change_mines) . ' mine';
165
+	}
168 166
 	//add s to mine if necesary
169
-	if (abs($change_mines) > 1)
170
-		$mines_message .= 's';
167
+	if (abs($change_mines) > 1) {
168
+			$mines_message .= 's';
169
+	}
171 170
 
172
-	if ($change_combat_drones > 0)
173
-		$combat_drones_message = ($change_mines <= 0 ? 'added ' : '') . $change_combat_drones . ' combat drone';
174
-	elseif ($change_combat_drones < 0)
175
-		$combat_drones_message = ($change_mines >= 0 ? 'removed ' : '') . abs($change_combat_drones) . ' combat drone';
171
+	if ($change_combat_drones > 0) {
172
+			$combat_drones_message = ($change_mines <= 0 ? 'added ' : '') . $change_combat_drones . ' combat drone';
173
+	} elseif ($change_combat_drones < 0) {
174
+			$combat_drones_message = ($change_mines >= 0 ? 'removed ' : '') . abs($change_combat_drones) . ' combat drone';
175
+	}
176 176
 	//add s to drone if necesary
177
-	if (abs($change_combat_drones) > 1)
178
-		$combat_drones_message .= 's';
177
+	if (abs($change_combat_drones) > 1) {
178
+			$combat_drones_message .= 's';
179
+	}
179 180
 
180 181
 	if ($change_scout_drones > 0) {
181 182
 		$scout_drones_message = '';
182
-		if ((isset($combat_drones_message) && $change_combat_drones < 0) || (!isset($combat_drones_message) && $change_mines <= 0))
183
-			$scout_drones_message = 'added ';
183
+		if ((isset($combat_drones_message) && $change_combat_drones < 0) || (!isset($combat_drones_message) && $change_mines <= 0)) {
184
+					$scout_drones_message = 'added ';
185
+		}
184 186
 		$scout_drones_message .= $change_scout_drones . ' scout drone';
185
-	}
186
-	elseif ($change_scout_drones < 0) {
187
+	} elseif ($change_scout_drones < 0) {
187 188
 		$scout_drones_message = '';
188
-		if ((isset($combat_drones_message) && $change_combat_drones > 0) || (!isset($combat_drones_message) && $change_mines >= 0))
189
-			$scout_drones_message = 'removed ';
189
+		if ((isset($combat_drones_message) && $change_combat_drones > 0) || (!isset($combat_drones_message) && $change_mines >= 0)) {
190
+					$scout_drones_message = 'removed ';
191
+		}
190 192
 		$scout_drones_message .= abs($change_scout_drones) . ' scout drone';
191 193
 	}
192 194
 	//add s to drone if necesary
193
-	if (abs($change_scout_drones) > 1)
194
-		$scout_drones_message .= 's';
195
+	if (abs($change_scout_drones) > 1) {
196
+			$scout_drones_message .= 's';
197
+	}
195 198
 
196 199
 	// now compile it together
197 200
 	$message = $player->getPlayerName() . ' has ' . $mines_message;
198 201
 
199
-	if (!empty($mines_message) && isset($combat_drones_message) && !isset($scout_drones_message))
200
-		$message .= ' and ' . $combat_drones_message;
201
-	elseif (!empty($mines_message) && isset($combat_drones_message))
202
-		$message .= ', ' . $combat_drones_message;
203
-	elseif (empty($mines_message) && isset($combat_drones_message))
204
-		$message .= $combat_drones_message;
205
-
206
-	if (!empty($mines_message) && isset($combat_drones_message) && isset($scout_drones_message))
207
-		$message .= ', and ' . $scout_drones_message;
208
-	elseif ((!empty($mines_message) || isset($combat_drones_message)) && isset($scout_drones_message))
209
-		$message .= ' and ' . $scout_drones_message;
210
-	elseif (empty($mines_message) && !isset($combat_drones_message) && isset($scout_drones_message))
211
-		$message .= $scout_drones_message;
212
-
213
-	if ($change_mines >= 0 && $change_combat_drones >= 0 && $change_scout_drones >= 0)
214
-		$message .= ' to';
215
-	elseif ($change_mines <= 0 && $change_combat_drones <= 0 && $change_scout_drones <= 0)
216
-		$message .= ' from';
217
-	else
218
-		$message .= ' from/to';
202
+	if (!empty($mines_message) && isset($combat_drones_message) && !isset($scout_drones_message)) {
203
+			$message .= ' and ' . $combat_drones_message;
204
+	} elseif (!empty($mines_message) && isset($combat_drones_message)) {
205
+			$message .= ', ' . $combat_drones_message;
206
+	} elseif (empty($mines_message) && isset($combat_drones_message)) {
207
+			$message .= $combat_drones_message;
208
+	}
209
+
210
+	if (!empty($mines_message) && isset($combat_drones_message) && isset($scout_drones_message)) {
211
+			$message .= ', and ' . $scout_drones_message;
212
+	} elseif ((!empty($mines_message) || isset($combat_drones_message)) && isset($scout_drones_message)) {
213
+			$message .= ' and ' . $scout_drones_message;
214
+	} elseif (empty($mines_message) && !isset($combat_drones_message) && isset($scout_drones_message)) {
215
+			$message .= $scout_drones_message;
216
+	}
217
+
218
+	if ($change_mines >= 0 && $change_combat_drones >= 0 && $change_scout_drones >= 0) {
219
+			$message .= ' to';
220
+	} elseif ($change_mines <= 0 && $change_combat_drones <= 0 && $change_scout_drones <= 0) {
221
+			$message .= ' from';
222
+	} else {
223
+			$message .= ' from/to';
224
+	}
219 225
 
220 226
 	$message .= ' your stack in sector ' . Globals::getSectorBBLink($forces->getSectorID());
221 227
 
Please login to merge, or discard this patch.
templates/Default/engine/Default/preferences.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -316,8 +316,8 @@
 block discarded – undo
316 316
 					foreach (Globals::getAvailableTemplates() as $AvailableTemplate => $ColourSchemes) {
317 317
 						foreach ($ColourSchemes as $ColourScheme) {
318 318
 							$selected = ($ThisAccount->getTemplate() == $AvailableTemplate &&
319
-							             $ThisAccount->getColourScheme() == $ColourScheme &&
320
-							             $ThisAccount->isDefaultCSSEnabled()) ? 'selected' : '';
319
+										 $ThisAccount->getColourScheme() == $ColourScheme &&
320
+										 $ThisAccount->isDefaultCSSEnabled()) ? 'selected' : '';
321 321
 							$name = $AvailableTemplate . ' - ' . $ColourScheme;
322 322
 							?><option value="<?php echo $name; ?>" <?php echo $selected; ?>><?php echo $name; ?></option><?php
323 323
 						}
Please login to merge, or discard this patch.
templates/Default/engine/Default/combat_log_viewer.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@
 block discarded – undo
20 20
 	$this->includeTemplate('includes/ForceFullCombatResults.inc', array('FullForceCombatResults'=>$CombatResults));
21 21
 } else if ($CombatResultsType == 'PORT') {
22 22
 	$this->includeTemplate('includes/PortFullCombatResults.inc', array('FullPortCombatResults'=>$CombatResults,
23
-	                                                                  'MinimalDisplay'=>false,
24
-	                                                                  'AlreadyDestroyed'=>false));
23
+																	  'MinimalDisplay'=>false,
24
+																	  'AlreadyDestroyed'=>false));
25 25
 } else if ($CombatResultsType == 'PLANET') {
26 26
 	$this->includeTemplate('includes/PlanetFullCombatResults.inc', array('FullPlanetCombatResults'=>$CombatResults,
27
-	                                                                    'MinimalDisplay'=>false,
28
-	                                                                    'AlreadyDestroyed'=>false));
27
+																		'MinimalDisplay'=>false,
28
+																		'AlreadyDestroyed'=>false));
29 29
 }
30 30
 ?>
Please login to merge, or discard this patch.
templates/Default/engine/Default/includes/SectorMap.inc 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 						if (!$UniGen) {
103 103
 							$CanScanSector = ($ThisShip->hasScanner() && $isLinkedSector) || $isCurrentSector;
104 104
 							$ShowFriendlyForces = isset($HideAlliedForces) && $HideAlliedForces ?
105
-							                      $Sector->hasPlayerForces($MapPlayer) : $Sector->hasFriendlyForces($MapPlayer);
105
+												  $Sector->hasPlayerForces($MapPlayer) : $Sector->hasFriendlyForces($MapPlayer);
106 106
 							if (($CanScanSector && ($Sector->hasForces() || $Sector->hasPlayers())) || $ShowFriendlyForces || $Sector->hasFriendlyTraders($MapPlayer)) { ?>
107 107
 								<div class="lmtf"><?php
108 108
 									if ($CanScanSector && $Sector->hasEnemyTraders($MapPlayer)) {
Please login to merge, or discard this patch.