Permalink
Browse files

Do not bind to starting coords in invited.

  • Loading branch information...
1 parent fc0bee9 commit e1cd2789348cfb5c4a3a11e2cd6bc8809d721470 @lemming552 lemming552 committed Mar 11, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Lacuna/DB/Result/Empire.pm
@@ -656,6 +656,8 @@ sub find_home_planet {
my $invite = Lacuna->db->resultset('Lacuna::DB::Result::Invite')->search({invitee_id => $self->id},{rows=>1})->single;
if (defined $invite) {
$search{zone} = $invite->zone;
+ delete $search{x};
+ delete $search{y};
# other possible solution
# (SQRT( POW(5-x,2) + POW(8-y,2) )) as distance
# then order by distance

0 comments on commit e1cd278

Please sign in to comment.