… | |
… | |
981 | prefetch_surrounding_maps (maptile *map, int distance) |
981 | prefetch_surrounding_maps (maptile *map, int distance) |
982 | { |
982 | { |
983 | map->touch (); |
983 | map->touch (); |
984 | |
984 | |
985 | if (--distance) |
985 | if (--distance) |
986 | for (int dir = 4; --dir; ) |
986 | for (int dir = 4; dir--; ) |
987 | if (const shstr &path = map->tile_path [dir]) |
987 | if (const shstr &path = map->tile_path [dir]) |
988 | if (maptile *&neigh = map->tile_map [dir]) |
988 | if (maptile *&neigh = map->tile_map [dir]) |
989 | prefetch_surrounding_maps (neigh, distance); |
989 | prefetch_surrounding_maps (neigh, distance); |
990 | else |
990 | else |
991 | neigh = maptile::find_async (path, map); |
991 | neigh = maptile::find_async (path, map); |
… | |
… | |
1084 | map_clearcell (&lastcell, -1); |
1084 | map_clearcell (&lastcell, -1); |
1085 | } |
1085 | } |
1086 | |
1086 | |
1087 | continue; |
1087 | continue; |
1088 | } |
1088 | } |
1089 | |
1089 | |
1090 | int d = pl->blocked_los_uc (dx, dy); |
1090 | int d = pl->blocked_los_uc (dx, dy); |
1091 | |
1091 | |
1092 | if (d > 3) |
1092 | if (d > 3) |
1093 | { |
1093 | { |
1094 | /* This block deals with spaces that are not visible for whatever |
1094 | /* This block deals with spaces that are not visible for whatever |