ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf.pm
(Generate patch)

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.196 by root, Sat Jan 27 23:59:29 2007 UTC vs.
Revision 1.198 by root, Sun Jan 28 01:58:37 2007 UTC

1827 my ($self, $path, $x, $y) = @_; 1827 my ($self, $path, $x, $y) = @_;
1828 1828
1829 $self->enter_link; 1829 $self->enter_link;
1830 1830
1831 (async { 1831 (async {
1832 my $map = eval {
1832 my $map = cf::map::find $path; 1833 my $map = cf::map::find $path;
1833 $map = $map->customise_for ($self) if $map; 1834 $map = $map->customise_for ($self) if $map;
1834 1835 $map
1835# warn "entering ", $map->path, " at ($x, $y)\n" 1836 } or
1836# if $map;
1837
1838 $map or $self->message ("The exit to '" . ($path->visible_name) . "' is closed", cf::NDI_UNIQUE | cf::NDI_RED); 1837 $self->message ("The exit to '$path' is closed", cf::NDI_UNIQUE | cf::NDI_RED);
1839 1838
1840 $self->leave_link ($map, $x, $y); 1839 $self->leave_link ($map, $x, $y);
1841 })->prio (1); 1840 })->prio (1);
1842} 1841}
1843 1842
1874 # that depends on the exit object 1873 # that depends on the exit object
1875 1874
1876 my $rmp = parse_random_map_params $exit->msg; 1875 my $rmp = parse_random_map_params $exit->msg;
1877 1876
1878 if ($exit->map) { 1877 if ($exit->map) {
1879 $rmp->{region} = $exit->map->region_name; 1878 $rmp->{region} = $exit->region->name;
1880 $rmp->{origin_map} = $exit->map->path; 1879 $rmp->{origin_map} = $exit->map->path;
1881 $rmp->{origin_x} = $exit->x; 1880 $rmp->{origin_x} = $exit->x;
1882 $rmp->{origin_y} = $exit->y; 1881 $rmp->{origin_y} = $exit->y;
1883 } 1882 }
1884 1883

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines