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

Comparing deliantra/Deliantra-Client/DC/MapWidget.pm (file contents):
Revision 1.140 by root, Sun Jul 20 15:09:29 2008 UTC vs.
Revision 1.141 by root, Wed Aug 27 20:19:52 2008 UTC

421 if ($self->{sdx} || $self->{sdy}) { 421 if ($self->{sdx} || $self->{sdy}) {
422 my $diff = EV::time - ($self->{last_update} || $::LAST_REFRESH); 422 my $diff = EV::time - ($self->{last_update} || $::LAST_REFRESH);
423 my $spd = $::CONN->{stat}{DC::Protocol::CS_STAT_SPEED}; 423 my $spd = $::CONN->{stat}{DC::Protocol::CS_STAT_SPEED};
424 424
425 # the minimum time for a single tile movement 425 # the minimum time for a single tile movement
426 my $mintime = DC::Protocol::TICK * DC::ceil 1 / ($spd * DC::Protocol::TICK); 426 my $mintime = DC::Protocol::TICK * DC::ceil 1 / ($spd * DC::Protocol::TICK || 1);
427 427
428 # jump if "impossibly high" speed 428 # jump if "impossibly high" speed
429 if ( 429 if (
430 (max abs $self->{sdx}, abs $self->{sdy}) 430 (max abs $self->{sdx}, abs $self->{sdy})
431 > $spd * $self->{tilesize} * $mintime * 1.1 431 > $spd * $self->{tilesize} * $mintime * 1.1

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines