Added cache for highlighted minimap images.
Used for displaying the reach of a selected unit in the minimap.
This commit is contained in:
parent
5e82305bc0
commit
3464f99469
2 changed files with 3 additions and 0 deletions
|
@ -156,6 +156,7 @@ namespace image {
|
|||
|
||||
mini_terrain_cache_map mini_terrain_cache;
|
||||
mini_terrain_cache_map mini_fogged_terrain_cache;
|
||||
mini_terrain_cache_map mini_highlighted_terrain_cache;
|
||||
|
||||
static int last_index_ = 0;
|
||||
|
||||
|
@ -177,6 +178,7 @@ void flush_cache()
|
|||
is_empty_hex_.flush();
|
||||
mini_terrain_cache.clear();
|
||||
mini_fogged_terrain_cache.clear();
|
||||
mini_highlighted_terrain_cache.clear();
|
||||
reversed_images_.clear();
|
||||
image_existence_map.clear();
|
||||
precached_dirs.clear();
|
||||
|
|
|
@ -138,6 +138,7 @@ namespace image {
|
|||
typedef std::map<t_translation::t_terrain, surface> mini_terrain_cache_map;
|
||||
extern mini_terrain_cache_map mini_terrain_cache;
|
||||
extern mini_terrain_cache_map mini_fogged_terrain_cache;
|
||||
extern mini_terrain_cache_map mini_highlighted_terrain_cache;
|
||||
|
||||
///light_string store colors info of central and adjacent hexes.
|
||||
///The structure is one or several 4 chars blocks (L,R,G,B)
|
||||
|
|
Loading…
Add table
Reference in a new issue