Author: boucman
Date: Mon Oct 13 19:14:23 2008
New Revision: 30127

URL: http://svn.gna.org/viewcvs/wesnoth?rev=30127&view=rev
Log:
fix slight bug in handling of image mods

Modified:
    trunk/src/unit_frame.cpp

Modified: trunk/src/unit_frame.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_frame.cpp?rev=30127&r1=30126&r2=30127&view=diff
==============================================================================
--- trunk/src/unit_frame.cpp (original)
+++ trunk/src/unit_frame.cpp Mon Oct 13 19:14:23 2008
@@ -516,10 +516,8 @@
        if(!engine_val.image_diagonal.is_void() && 
!engine_val.image_diagonal.get_filename().empty()) result.image_diagonal = 
engine_val.image_diagonal;
 
        /** engine provides a string for "stoned" and "team color" 
modifications */
-       if(primary) {
                result.image_mod = current_val.image_mod 
+animation_val.image_mod;
-               result.image_mod += engine_val.image_mod;
-       }
+       if(primary)     result.image_mod += engine_val.image_mod;
 
        assert(engine_val.halo.empty());
        result.halo = 
current_val.halo.empty()?animation_val.halo:current_val.halo;


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

Reply via email to