Linger mode overlay is also drawn over fog and shroud (bug #10811).
Patch is based on the comment of alink in the bug report.
This commit is contained in:
parent
fd0d69539e
commit
1106e2a7fb
3 changed files with 6 additions and 1 deletions
|
@ -9,6 +9,7 @@ Version 1.3.14+svn:
|
|||
* damage statistics for the current turn also works for observers now
|
||||
* user interface:
|
||||
* Made ESC clear hotkey when changing hotkeys
|
||||
* linger mode overlay is also drawn over fog and shroud (bug #10811)
|
||||
* miscellaneous and bug fixes:
|
||||
* Fixed boost test compile with 1.34.1
|
||||
* Make wesnoth work properly again if the datadir contains ../
|
||||
|
|
|
@ -9,6 +9,7 @@ Version 1.3.14+svn:
|
|||
|
||||
* User interface
|
||||
* Made ESC clear hotkey when changing hotkeys.
|
||||
* Linger mode overlay is also drawn over fog and shroud.
|
||||
|
||||
* Miscellaneous and bug fixes
|
||||
* Added a more graceful handling of maps without a header.
|
||||
|
|
|
@ -414,7 +414,10 @@ void game_display::draw(bool update,bool force)
|
|||
tile_stack_append(image::get_image(shroud_image, image::SCALED_TO_HEX));
|
||||
} else if(fogged(*it)) {
|
||||
tile_stack_append(image::get_image(fog_image, image::SCALED_TO_HEX));
|
||||
} else if(game_mode_ != RUNNING) {
|
||||
}
|
||||
// Linger overlay unconditionally otherwise it might give glitches
|
||||
// so it's drawn over the shroud and fog.
|
||||
if(game_mode_ != RUNNING) {
|
||||
blit.surf.push_back(image::get_image(game_config::linger_image, image::SCALED_TO_HEX));
|
||||
drawing_buffer_add(LAYER_LINGER_OVERLAY, drawing_order, blit);
|
||||
blit.surf.clear();
|
||||
|
|
Loading…
Add table
Reference in a new issue