Author: tschmitz
Date: Wed Jul 27 00:42:51 2011
New Revision: 50457

URL: http://svn.gna.org/viewcvs/wesnoth?rev=50457&view=rev
Log:
Hopefully fixed bug #18414.

It could still use some investigation. When did this bug first appear?

Modified:
    trunk/src/game_display.cpp

Modified: trunk/src/game_display.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_display.cpp?rev=50457&r1=50456&r2=50457&view=diff
==============================================================================
--- trunk/src/game_display.cpp (original)
+++ trunk/src/game_display.cpp Wed Jul 27 00:42:51 2011
@@ -622,8 +622,8 @@
        // When out-of-turn, it's still interesting to check out the terrain 
defs of the selected unit
        else if (selectedHex_.valid() && loc == mouseoverHex_)
        {
-               const unit_map::const_iterator selectedUnit = 
units_.find(selectedHex_);
-               const unit_map::const_iterator mouseoveredUnit = 
units_.find(mouseoverHex_);
+               const unit_map::const_iterator selectedUnit = 
find_visible_unit(selectedHex_,resources::teams->at(currentTeam_));
+               const unit_map::const_iterator mouseoveredUnit = 
find_visible_unit(mouseoverHex_,resources::teams->at(currentTeam_));
                if(selectedUnit != units_.end() && mouseoveredUnit == 
units_.end()) {
                        // Display the def% of this terrain
                        int def =  100 - 
selectedUnit->defense_modifier(get_map().get_terrain(loc));


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to