--- deliantra/Deliantra-Client/DC/Protocol.pm 2006/10/08 21:22:30 1.86 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2006/11/19 20:31:29 1.88 @@ -9,6 +9,8 @@ use CFPlus::UI; use CFPlus::Pod; +use Crossfire::Protocol::Base 0.95; + use base 'Crossfire::Protocol::Base'; sub new { @@ -321,9 +323,8 @@ sub user_send { my ($self, $command) = @_; - if ($self->{record}) { - push @{$self->{record}}, $command; - } + push @{$self->{record}}, $command + if $self->{record}; $self->logprint ("send: ", $command); $self->send_command ($command); @@ -657,7 +658,7 @@ $spell->{message} =~ s/\n+$//; $spell->{message} ||= "Server did not provide a description for this spell."; - $::SPELL_PAGE->add_spell ($spell); + $::SPELL_LIST->add_spell ($spell); $self->{map_widget}->add_command ("invoke $spell->{name}", CFPlus::asxml $spell->{message}); $self->{map_widget}->add_command ("cast $spell->{name}", CFPlus::asxml $spell->{message}); @@ -666,7 +667,13 @@ sub spell_delete { my ($self, $spell) = @_; - $::SPELL_PAGE->remove_spell ($spell); + $::SPELL_LIST->remove_spell ($spell); +} + +sub setup { + my ($self, $setup) = @_; + + $::MAP->resize ($self->{mapw}, $self->{maph}); } sub addme_success {