unhighlight the previous speaker when the narrator speaks

This commit is contained in:
Martin Renold 2008-02-03 09:35:14 +00:00
parent b02f888474
commit 44ee4a372e
3 changed files with 8 additions and 1 deletions

View file

@ -12,6 +12,9 @@ Version 1.3.15+svn:
* Made era not required while loading save game
* Removed bogus client commands about takeing side
* Fixed control change when giving own team (bug #6639)
* User interface
* During dialogs the speaker is shown in the sidebar and highlighted.
* During ai moves the source hex is no longer highlighted.
* miscellaneous and bug fixes:
* Moved destruction of conditional object before the mutex. This should
fix random crash in network disconnect.

View file

@ -9,6 +9,8 @@ Version 1.3.15+svn:
* Multiplayer
* Reloaded games are displayed in yellow (instead of green) in the game
list as they are also a kind of already running games.
* User interface
* During dialogs the speaker is shown in the sidebar and highlighted.
Version 1.3.15:
* Language and translations

View file

@ -1796,7 +1796,6 @@ void event_handler::handle_event_command(const queued_event& event_info,
const int offset_from_center = maximum<int>(0, speaker->first.y - 1);
screen->scroll_to_tile(gamemap::location(speaker->first.x,offset_from_center));
screen->highlight_hex(speaker->first);
screen->draw(false);
if(image.empty()) {
image = speaker->second.profile();
@ -1820,7 +1819,10 @@ void event_handler::handle_event_command(const queued_event& event_info,
}
}
LOG_DP << "done scrolling to speaker...\n";
} else {
screen->highlight_hex(gamemap::location::null_location);
}
screen->draw(false);
std::vector<std::string> options;
std::vector<vconfig::child_list> option_events;