--- deliantra/Deliantra-Client/DC/Protocol.pm 2006/06/05 05:06:23 1.19 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2006/06/05 05:31:13 1.20 @@ -5,6 +5,7 @@ use Crossfire::Protocol::Constants; +use CFClient; use CFClient::UI; use base 'Crossfire::Protocol::Base'; @@ -16,8 +17,7 @@ $self->{map_widget}->clr_commands; - my $parser = new Pod::POM; - my $pod = $parser->parse_file (CFClient::find_rcfile "pod/command_help.pod"); + my $pod = CFClient::load_pod CFClient::find_rcfile "pod/command_help.pod"; for my $head2 ($pod->head1->[-2]->head2) { $head2->title =~ /^(\S+) (?:\s+ \( ([^\)]*) \) )?/x @@ -461,8 +461,7 @@ sub addme_success { my ($self) = @_; - my $parser = new Pod::POM; - my $pod = $parser->parse_file (CFClient::find_rcfile "pod/skill_help.pod"); + my $pod = CFClient::load_pod CFClient::find_rcfile "pod/skill_help.pod"; my %skill_tooltip;