Skip to content

Commit

Permalink
Merge branch 'bug21486' of github.com:sachith500/wesnoth-old (PR #94)
Browse files Browse the repository at this point in the history
  • Loading branch information
AI0867 committed Feb 25, 2014
2 parents a099a52 + ebd111b commit 76b9976
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
3 changes: 3 additions & 0 deletions changelog
Expand Up @@ -9,6 +9,9 @@ Version 1.11.10+dev:
* WML engine:
* Bug #21643: Removing fog from a single hex no longer makes the hex ugly.
* WML files whose names contain spaces are ignored.
* User interface:
* Non-team labels no longer remove team labels that were present in the
same hex.
* Miscellaneous and bug fixes:
* Units can no longer be moved in linger mode (bug #21450).
* Changed: Updated valgrind suppression file.
Expand Down
5 changes: 5 additions & 0 deletions data/core/about.cfg
Expand Up @@ -193,6 +193,11 @@
[entry]
name = "Rusty Russell (rusty)"
[/entry]
[entry]
name = "Sachith Seneviratne (sachith500)"
email = "sachith500@gmail.com"
comment = "Bug fixes at the moment. GSoC Aspirant"
[/entry]
[entry]
name = "Sergey Popov (loonycyborg)"
comment = "scons"
Expand Down
4 changes: 3 additions & 1 deletion players_changelog
Expand Up @@ -12,7 +12,9 @@ Version 1.11.10+dev:
* Units can no longer be moved in linger mode (bug #21450).
* Labels are now removed when shroud/fog is removed, rather than waiting
for a new turn (bug #21434).

* User interface:
* Non-team labels no longer remove team labels that were present in the
same hex.

Version 1.11.10:
* Campaigns:
Expand Down
6 changes: 0 additions & 6 deletions src/menu_events.cpp
Expand Up @@ -1168,12 +1168,6 @@ void menu_handler::label_terrain(mouse_handler& mousehandler, bool team_only)
} else {
color = int_to_color(team::get_side_rgb(gui_->viewing_side()));
}
const std::string& old_team_name = old_label ? old_label->team_name() : "";
// remove the old label if we changed the team_name
if (team_only == (old_team_name == "")) {
const terrain_label* old = gui_->labels().set_label(loc, "", old_team_name, color);
if (old) recorder.add_label(old);
}
const terrain_label* res = gui_->labels().set_label(loc, label, team_name, color);
if (res)
recorder.add_label(res);
Expand Down

0 comments on commit 76b9976

Please sign in to comment.