ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/Protocol.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/Protocol.pm (file contents):
Revision 1.93 by root, Fri Dec 22 03:43:05 2006 UTC vs.
Revision 1.95 by root, Wed Apr 4 02:43:30 2007 UTC

39 map ["$cmd$_", $text], 39 map ["$cmd$_", $text],
40 sort { (length $a) <=> (length $b) } 40 sort { (length $a) <=> (length $b) }
41 @args 41 @args
42 } sort { $a->{par} <=> $b->{par} } 42 } sort { $a->{par} <=> $b->{par} }
43 CFPlus::Pod::find command => "*"; 43 CFPlus::Pod::find command => "*";
44
45 $self->connect_ext (event_capabilities => sub {
46 my ($cap) = @_;
47
48 if (my $ts = $cap->{tileset}) {
49 if (my ($default) = grep $_->[2] & 1, @$ts) {
50 $self->{tileset} = $default;
51 $self->{tilesize} = $default->[3];
52 $self->setup_req (tileset => $default->[0]);
53
54 my $w = int $self->{mapw} * 32 / $self->{tilesize};
55 my $h = int $self->{maph} * 32 / $self->{tilesize};
56
57 $self->setup_req (mapsize => "${w}x${h}");
58 }
59 }
60 });
44 61
45 $self->{map_widget}->add_command (@$_) 62 $self->{map_widget}->add_command (@$_)
46 for @cmd_help; 63 for @cmd_help;
47 64
48 $self->{noface} = new_from_file CFPlus::Texture 65 $self->{noface} = new_from_file CFPlus::Texture
679} 696}
680 697
681sub setup { 698sub setup {
682 my ($self, $setup) = @_; 699 my ($self, $setup) = @_;
683 700
701 $self->{map_widget}->set_tilesize ($self->{tilesize});
684 $::MAP->resize ($self->{mapw}, $self->{maph}); 702 $::MAP->resize ($self->{mapw}, $self->{maph});
685} 703}
686 704
687sub addme_success { 705sub addme_success {
688 my ($self) = @_; 706 my ($self) = @_;
928 946
929 $self->update_server_info; 947 $self->update_server_info;
930 948
931 $self->send_command ("output-sync $::CFG->{output_sync}"); 949 $self->send_command ("output-sync $::CFG->{output_sync}");
932 $self->send_command ("output-count $::CFG->{output_count}"); 950 $self->send_command ("output-count $::CFG->{output_count}");
951 $self->send_command ("output-rate $::CFG->{output_rate}") if $::CFG->{output_rate} > 0;
933 $self->send_command ("pickup $::CFG->{pickup}"); 952 $self->send_command ("pickup $::CFG->{pickup}");
934} 953}
935 954
936sub buildat { 955sub buildat {
937 my ($self, $builditem, $x, $y) = @_; 956 my ($self, $builditem, $x, $y) = @_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines