ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/map-prefetch.ext
(Generate patch)

Comparing deliantra/maps/perl/map-prefetch.ext (file contents):
Revision 1.7 by root, Sun Jul 16 17:15:18 2006 UTC vs.
Revision 1.8 by root, Sun Jul 16 19:14:10 2006 UTC

89 89
90 if ($type eq "map") { 90 if ($type eq "map") {
91 if (my $map = cf::map::has_been_loaded $path) { 91 if (my $map = cf::map::has_been_loaded $path) {
92 $cb->(), next if $map->in_memory == cf::MAP_IN_MEMORY; 92 $cb->(), next if $map->in_memory == cf::MAP_IN_MEMORY;
93 93
94 prefetch file => $map->tmppath 94 prefetch file => $map->tmpname
95 if $map->in_memory == cf::MAP_SWAPPED; 95 if $map->in_memory == cf::MAP_SWAPPED;
96 } 96 }
97 } 97 }
98 98
99 load_file $path, $cb; 99 load_file $path, $cb;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines