--- deliantra/Deliantra-Client/DC/UI.pm 2006/04/15 01:16:17 1.110 +++ deliantra/Deliantra-Client/DC/UI.pm 2006/04/15 02:10:22 1.111 @@ -1715,12 +1715,12 @@ my $sw = int $::WIDTH / 32; my $sh = int $::HEIGHT / 32; - my $sx = $::CFG->{map_shift_x}; - my $sy = $::CFG->{map_shift_y}; + my $sx = $::CFG->{map_shift_x}; my $sx0 = $sx & 31; $sx = ($sx - $sx0) / 32; + my $sy = $::CFG->{map_shift_y}; my $sy0 = $sy & 31; $sy = ($sy - $sy0) / 32; - glTranslate +($sx & 31) - 32, ($sy & 31) - 32, 0; + glTranslate $sx0 - 32, $sy0 - 32, 0; - my ($w, $h, $data) = $::MAP->draw ($sx >> 5, $sy >> 5, 0, 0, $sw + 1, $sh + 1); + my ($w, $h, $data) = $::MAP->draw ($sx, $sy, 0, 0, $sw + 1, $sh + 1); if ($::CFG->{fow_enable}) { if ($::CFG->{fow_smooth}) { # smooth fog of war @@ -1761,7 +1761,7 @@ # HACK BEGIN { - glTranslate -(($sx & 31) - 32), -(($sy & 31) - 32), 0;#remove + glTranslate -($sx0 - 32), -($sy0 - 32), 0;#remove my ($w, $h) = (250, 250); glEnable GL_BLEND;