From bc94e0c9888c7521311f9e1029eb60d3c3e33fd9 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Fri, 14 Jan 2011 10:24:06 -0600 Subject: [PATCH] Fixed a bug where space port wouldn't be able to see a ship's path if it couldn't also see the type. --- lib/Lacuna/RPC/Building/SpacePort.pm | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/Lacuna/RPC/Building/SpacePort.pm b/lib/Lacuna/RPC/Building/SpacePort.pm index 35e56f89..dbc2c234 100644 --- a/lib/Lacuna/RPC/Building/SpacePort.pm +++ b/lib/Lacuna/RPC/Building/SpacePort.pm @@ -389,19 +389,19 @@ sub view_foreign_ships { date_arrives => $ship->date_available_formatted, from => {}, ); - if ($ship->body_id ~~ \@my_planets || $see_ship_type >= $ship->stealth) { - $ship_info{name} = $ship->name; - $ship_info{type} = $ship->type; - $ship_info{type_human} = $ship->type_formatted; - if ($ship->body_id ~~ \@my_planets || $see_ship_path >= $ship->stealth) { - $ship_info{from} = { - id => $ship->body->id, - name => $ship->body->name, - empire => { - id => $ship->body->empire->id, - name => $ship->body->empire->name, - }, - }; + if ($ship->body_id ~~ \@my_planets || $see_ship_path >= $ship->stealth) { + $ship_info{from} = { + id => $ship->body->id, + name => $ship->body->name, + empire => { + id => $ship->body->empire->id, + name => $ship->body->empire->name, + }, + }; + if ($ship->body_id ~~ \@my_planets || $see_ship_type >= $ship->stealth) { + $ship_info{name} = $ship->name; + $ship_info{type} = $ship->type; + $ship_info{type_human} = $ship->type_formatted; } } push @fleet, \%ship_info; -- 2.54.0