… | |
… | |
930 | |
930 | |
931 | // prefetch (and touch) all maps within a specific distancd |
931 | // prefetch (and touch) all maps within a specific distancd |
932 | static void |
932 | static void |
933 | prefetch_surrounding_maps (maptile *map, int distance) |
933 | prefetch_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]) |