From 7e5932a8fdba8799f9b4f5a894e314070e10535e Mon Sep 17 00:00:00 2001 From: Darin McBride Date: Sun, 27 Dec 2015 17:30:45 -0700 Subject: [PATCH] Unallied players should never see anyone else in purple on the starmap. --- lib/Lacuna/DB/ResultSet/Map/StarLite.pm | 2 +- var/www/public/changes.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Lacuna/DB/ResultSet/Map/StarLite.pm b/lib/Lacuna/DB/ResultSet/Map/StarLite.pm index 49abf400..6865c8be 100644 --- a/lib/Lacuna/DB/ResultSet/Map/StarLite.pm +++ b/lib/Lacuna/DB/ResultSet/Map/StarLite.pm @@ -71,7 +71,7 @@ sub get_star_map { }; if (defined $row->empire_id) { my $alignment = 'hostile'; - $alignment = 'ally' if $row->empire_alliance_id == $alliance_id; + $alignment = 'ally' if ($row->empire_alliance_id||-1) == $alliance_id; $alignment = 'self' if $row->empire_id == $empire_id; $alignment .= '-isolationist' if $row->empire_is_isolationist; diff --git a/var/www/public/changes.txt b/var/www/public/changes.txt index 03cc49c9..3836b0d7 100644 --- a/var/www/public/changes.txt +++ b/var/www/public/changes.txt @@ -1,3 +1,6 @@ +3.0918: + - Fix: Unallied players should never see anyone else in purple on the starmap. + 3.0917: - Fix: Recalc stats when building 1+x plans. - Fix: Station incoming shows your incoming as own, not station owner's incoming. -- 2.51.2