Author: boucman
Date: Tue Sep 2 20:53:41 2008
New Revision: 29210
URL: http://svn.gna.org/viewcvs/wesnoth?rev=29210&view=rev
Log:
hopefully fix bug 11947, ai0867, could you please test ? era of strife seem not
to be available for SVN thx
Modified:
trunk/src/unit.cpp
Modified: trunk/src/unit.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.cpp?rev=29210&r1=29209&r2=29210&view=diff
==============================================================================
--- trunk/src/unit.cpp (original)
+++ trunk/src/unit.cpp Tue Sep 2 20:53:41 2008
@@ -1943,7 +1943,10 @@
if(unit_halo_ == halo::NO_HALO && !image_halo().empty()) {
unit_halo_ = halo::add(0, 0, image_halo(),
gamemap::location(-1, -1));
}
- if(unit_halo_ != halo::NO_HALO) {
+ if(unit_halo_ != halo::NO_HALO && image_halo().empty()) {
+ halo::remove(unit_halo_);
+ unit_halo_ = halo::NO_HALO;
+ } else if(unit_halo_ != halo::NO_HALO) {
halo::set_location(unit_halo_, x, y);
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits