… | |
… | |
479 | |
479 | |
480 | glPushMatrix; |
480 | glPushMatrix; |
481 | glTranslate $sx0, $sy0; |
481 | glTranslate $sx0, $sy0; |
482 | glScale $::CFG->{map_scale}, $::CFG->{map_scale}; |
482 | glScale $::CFG->{map_scale}, $::CFG->{map_scale}; |
483 | |
483 | |
484 | my $missing = $::MAP->draw ($dx, $dy, $sw, $sh, $self->{tilesize}); |
484 | $::MAP->draw ($dx, $dy, $sw, $sh, $self->{tilesize}); |
485 | |
485 | |
486 | glScale $self->{tilesize}, $self->{tilesize}; |
486 | glScale $self->{tilesize}, $self->{tilesize}; |
487 | |
487 | |
488 | if (my $tex = $self->{fow_texture}) { |
488 | if (my $tex = $self->{fow_texture}) { |
489 | glPushMatrix; |
489 | glPushMatrix; |
… | |
… | |
509 | $::MAP->draw_magicmap ($x, $y, $w, $h, $data); |
509 | $::MAP->draw_magicmap ($x, $y, $w, $h, $data); |
510 | } |
510 | } |
511 | |
511 | |
512 | glPopMatrix; |
512 | glPopMatrix; |
513 | glEndList; |
513 | glEndList; |
514 | |
|
|
515 | for my $tile (@$missing) { |
|
|
516 | $tile = $::CONN->{texture}[$tile] |
|
|
517 | or next; |
|
|
518 | next if $tile->{loading}; |
|
|
519 | $tile->upload; |
|
|
520 | } |
|
|
521 | } |
514 | } |
522 | } else { |
515 | } else { |
523 | glDeleteList delete $self->{list} |
516 | glDeleteList delete $self->{list} |
524 | if $self->{list}; |
517 | if $self->{list}; |
525 | } |
518 | } |