Send parameter as const reference and cleanups.
This commit is contained in:
parent
35a6ac12cb
commit
d8e00df06a
1 changed files with 13 additions and 5 deletions
|
@ -294,14 +294,22 @@ public:
|
|||
* These functions require a prerendered surface.
|
||||
* Since they are drawn at the top, they are not influenced by TOD, shroud etc.
|
||||
*/
|
||||
void set_hex_overlay(const map_location& loc, surface image) { hex_overlay_[loc] = image; }
|
||||
void set_hex_overlay(const map_location& loc, const surface& image)
|
||||
{ hex_overlay_[loc] = image; }
|
||||
|
||||
void clear_hex_overlay(const map_location& loc);
|
||||
|
||||
void set_selected_hex_overlay(const surface& image) { selected_hex_overlay_ = image; }
|
||||
void clear_selected_hex_overlay() { selected_hex_overlay_ = NULL; }
|
||||
void set_selected_hex_overlay(const surface& image)
|
||||
{ selected_hex_overlay_ = image; }
|
||||
|
||||
void set_mouseover_hex_overlay(const surface& image) { mouseover_hex_overlay_ = image; }
|
||||
void clear_mouseover_hex_overlay() { mouseover_hex_overlay_ = NULL; }
|
||||
void clear_selected_hex_overlay()
|
||||
{ selected_hex_overlay_ = NULL; }
|
||||
|
||||
void set_mouseover_hex_overlay(const surface& image)
|
||||
{ mouseover_hex_overlay_ = image; }
|
||||
|
||||
void clear_mouseover_hex_overlay()
|
||||
{ mouseover_hex_overlay_ = NULL; }
|
||||
|
||||
/**
|
||||
* Debug function to toggle the "sunset" mode.
|
||||
|
|
Loading…
Add table
Reference in a new issue