--- deliantra/Deliantra-Client/DC/UI.pm 2006/05/17 10:14:52 1.210 +++ deliantra/Deliantra-Client/DC/UI.pm 2006/05/17 10:33:03 1.211 @@ -2556,7 +2556,13 @@ # todo: maybe put examine on 1? but should just be a tooltip :( if ($ev->{button} == 1) { - $::CONN->send ("move $::CONN->{player}{tag} $item->{tag} 0"); + my $targ = $::CONN->{player}{tag}; + + if ($item->{container} == $::CONN->{player}{tag}) { + $targ = $main::OPENCONT; + } + + $::CONN->send ("move $targ $item->{tag} 0"); } elsif ($ev->{button} == 2) { $::CONN->send ("apply $item->{tag}"); } elsif ($ev->{button} == 3) { @@ -2567,7 +2573,7 @@ ["drop", sub { $::CONN->send ("move $main::OPENCONT $item->{tag} 0") }], [ $item->{flags} & Crossfire::Protocol::F_LOCKED ? "lock" : "unlock", - sub { $::CONN->send ("lock ". () ."$item->{tag}") }, + sub { $::CONN->send ("lock $item->{tag}") }, ], );