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

Comparing deliantra/Deliantra-Client/bin/deliantra (file contents):
Revision 1.78 by root, Tue Sep 30 03:05:07 2008 UTC vs.
Revision 1.79 by root, Fri Dec 19 22:06:53 2008 UTC

766} 766}
767 767
768sub dc_connect { 768sub dc_connect {
769 my ($host, $port) = @_; 769 my ($host, $port) = @_;
770 770
771 my $mapsize = List::Util::min 32, List::Util::max 11, int $WIDTH * $CFG->{mapsize} * 0.01 / 32; 771 my $mapw = List::Util::min 48, List::Util::max 11, int $WIDTH * $CFG->{mapsize} * 0.01 / 32;
772 my $maph = List::Util::min 48, List::Util::max 11, int $HEIGHT * $CFG->{mapsize} * 0.01 / 32;
772 773
773 $CONN = 774 $CONN =
774 new DC::Protocol 775 new DC::Protocol
775 host => $host, 776 host => $host,
776 port => $port, 777 port => $port,
777 user => $PROFILE->{user}, 778 user => $PROFILE->{user},
778 pass => $PROFILE->{password}, 779 pass => $PROFILE->{password},
779 mapw => $mapsize, 780 mapw => $mapw,
780 maph => $mapsize, 781 maph => $maph,
781 782
782 client => "$DC::VERSION $] $^O", 783 client => "$DC::VERSION $] $^O",
783 784
784 map_widget => $MAPWIDGET, 785 map_widget => $MAPWIDGET,
785 statusbox => $STATUSBOX, 786 statusbox => $STATUSBOX,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines