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.116 by root, Mon Aug 6 05:06:33 2007 UTC vs.
Revision 1.117 by root, Fri Aug 10 04:02:13 2007 UTC

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 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines