--- deliantra/Deliantra-Client/DC/Protocol.pm 2006/05/26 19:34:30 1.3 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2006/05/27 19:49:07 1.6 @@ -27,13 +27,14 @@ my @args = split /\|/, $2; @args = (".*") unless @args; - my $text = CFClient::pod_to_pango $head2->content; + $_ = $_ eq ".*" ? "" : " $_" + for @args; - for my $arg (@args) { - $arg = $arg eq ".*" ? "" : " $arg"; + my $text = CFClient::pod_to_pango $head2->content; - $self->{map_widget}->add_command ("$cmd$arg", $text); - } + $self->{map_widget}->add_command ("$cmd$_", $text) + for sort { (length $a) <=> (length $b) } + @args; } $self->{noface} = new_from_file CFClient::Texture @@ -54,7 +55,7 @@ sub stats_update { my ($self, $stats) = @_; - if (my $exp = $stats->{CS_STAT_EXP64}) { + if (my $exp = $stats->{+CS_STAT_EXP64}) { my $diff = $exp - $self->{prev_exp}; $self->{statusbox}->add ("$diff experience gained", group => "experience $diff", fg => [0.5, 1, 0.5, 0.8], timeout => 5) if exists $self->{prev_exp} && $diff;