--- deliantra/Deliantra-Client/DC/MapWidget.pm 2006/04/24 11:54:26 1.14 +++ deliantra/Deliantra-Client/DC/MapWidget.pm 2006/04/24 13:12:32 1.17 @@ -83,9 +83,10 @@ glNewList $self->{list}; if ($::MAP) { - my $sw = int $::WIDTH / (32 * $::CFG->{map_scale}); - my $sh = int $::HEIGHT / (32 * $::CFG->{map_scale}); + my $sw = int $::WIDTH / (32 * $::CFG->{map_scale}) + 0.99; + my $sh = int $::HEIGHT / (32 * $::CFG->{map_scale}) + 0.99; + glPushMatrix; glScale $::CFG->{map_scale}, $::CFG->{map_scale}; my $sx = $::CFG->{map_shift_x} / $::CFG->{map_scale}; my $sx0 = $sx & 31; $sx = ($sx - $sx0) / 32; @@ -146,6 +147,8 @@ glEnable GL_TEXTURE_2D; glTexEnv GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE; + glPopMatrix; + $self->{mapmap_texture} = new CFClient::Texture w => $w, @@ -322,7 +325,7 @@ for (@$command) { if ($_->[0] =~ $search_abbrev) { push @found, [$_->[0], $_]; - } elsif ($_[1] =~ $search_full) { + } elsif ($_->[1] =~ $search_full) { push @found, [$_->[1], $_]; } }