… | |
… | |
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 | |