--- deliantra/server/ext/commands.ext 2007/03/02 15:09:05 1.33 +++ deliantra/server/ext/commands.ext 2007/03/02 15:25:37 1.34 @@ -152,16 +152,15 @@ cf::register_command $cmd => sub { my ($ob, $arg) = @_; - $ob->contr->$oncmd (1); - - return $ob->reply (undef, "Can't $cmd into a non adjacent square.") + $ob->reply (undef, "Can't $cmd into a non adjacent square.") if $arg < 0 or $arg >= 9; - $ob->move ($arg); + $ob->contr->$oncmd (1); + $ob->move_player ($arg); 1 }; - + cf::register_command "${cmd}_stop" => sub { my ($ob) = @_;