--- deliantra/Deliantra-Client/DC/MapWidget.pm 2007/07/23 23:52:41 1.114 +++ deliantra/Deliantra-Client/DC/MapWidget.pm 2007/08/10 04:02:13 1.117 @@ -185,11 +185,7 @@ $y -= CFPlus::floor $::MAP->h * 0.5; if ($::CONN) { - if ($::IN_BUILD_MODE) { - $::CONN->buildat ($::IN_BUILD_MODE, $x, $y); - } else { - $::CONN->lookat ($x, $y) - } + $::CONN->lookat ($x, $y) } } elsif ($ev->{button} == 2) { @@ -450,7 +446,7 @@ sub refresh_hook { my ($self) = @_; - if ($::MAP) { + if ($::MAP && $::CONN) { if (delete $self->{need_update}) { my $tilesize = $self->{ctilesize} = (int $self->{tilesize} * $::CFG->{map_scale}) || 1;