… | |
… | |
582 | CFPlus::DB::exists tilecache => $id, sub { |
582 | CFPlus::DB::exists tilecache => $id, sub { |
583 | my ($exists) = @_; |
583 | my ($exists) = @_; |
584 | |
584 | |
585 | return unless $self->{map}; # stop when destroyed |
585 | return unless $self->{map}; # stop when destroyed |
586 | |
586 | |
|
|
587 | if ($exists) { |
587 | $self->have_tile ($id) |
588 | $self->have_tile ($id) |
588 | if $exists; |
|
|
589 | |
|
|
590 | $self->{texture}[$id]->upload; |
589 | $self->{texture}[$id]->upload; |
|
|
590 | } |
591 | |
591 | |
592 | $self->bg_fetch; |
592 | $self->bg_fetch; |
593 | }; |
593 | }; |
594 | } |
594 | } |
595 | |
595 | |