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.50 by root, Thu Jul 17 13:07:01 2008 UTC vs.
Revision 1.51 by root, Thu Jul 17 15:23:43 2008 UTC

98 98
99use Deliantra; 99use Deliantra;
100use Deliantra::Protocol::Constants; 100use Deliantra::Protocol::Constants;
101 101
102use AnyEvent::DNS; 102use AnyEvent::DNS;
103use AnyEvent::Socket ();
103 104
104use Compress::LZF; 105use Compress::LZF;
105 106
106use DC; 107use DC;
107BEGIN { $SIG{__DIE__} = sub { DC::fatal Carp::longmess "$@" unless $^S } } 108BEGIN { $SIG{__DIE__} = sub { DC::fatal Carp::longmess "$@" unless $^S } }
736 my $mapsize = List::Util::min 32, List::Util::max 11, int $WIDTH * $CFG->{mapsize} * 0.01 / 32; 737 my $mapsize = List::Util::min 32, List::Util::max 11, int $WIDTH * $CFG->{mapsize} * 0.01 / 32;
737 738
738 $CONN = 739 $CONN =
739 new DC::Protocol 740 new DC::Protocol
740 host => $host, 741 host => $host,
741 port => $port || "deliantra=13327", 742 port => $port,
742 user => $PROFILE->{user}, 743 user => $PROFILE->{user},
743 pass => $PROFILE->{password}, 744 pass => $PROFILE->{password},
744 mapw => $mapsize, 745 mapw => $mapsize,
745 maph => $mapsize, 746 maph => $mapsize,
746 747
774 status "logging in..."; 775 status "logging in...";
775 776
776 $LOGIN_BUTTON->set_text ("Logout"); 777 $LOGIN_BUTTON->set_text ("Logout");
777 $SETUP_DIALOG->hide; 778 $SETUP_DIALOG->hide;
778 779
779 my ($host, $port) = split /:/, $PROFILE->{host}; 780 my ($host, $port) = AnyEvent::Socket::parse_hostport $PROFILE->{host}, "deliantra=13327";
780 781
781 $MAP = new DC::Map; 782 $MAP = new DC::Map;
782 783
783 # hack to make SURE we find the IP address all right 784 # hack to make SURE we find the IP address all right
784 # can be removed once AnyEvent::DNS is proven stable. 785 # can be removed once AnyEvent::DNS is proven stable.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines