ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/request.C
(Generate patch)

Comparing deliantra/server/socket/request.C (file contents):
Revision 1.146 by root, Sat Dec 27 01:25:00 2008 UTC vs.
Revision 1.147 by root, Sat Dec 27 08:41:44 2008 UTC

930 930
931// prefetch (and touch) all maps within a specific distancd 931// prefetch (and touch) all maps within a specific distancd
932static void 932static void
933prefetch_surrounding_maps (maptile *map, int distance) 933prefetch_surrounding_maps (maptile *map, int distance)
934{ 934{
935 map->last_access = runtime; 935 map->touch ();
936 936
937 if (--distance) 937 if (--distance)
938 for (int dir = 4; --dir; ) 938 for (int dir = 4; --dir; )
939 if (const shstr &path = map->tile_path [dir]) 939 if (const shstr &path = map->tile_path [dir])
940 if (maptile *&neigh = map->tile_map [dir]) 940 if (maptile *&neigh = map->tile_map [dir])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines