mail[Wesnoth-commits] r43313 - /trunk/src/unit.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on June 12, 2010 - 18:01:
Author: mordante
Date: Sat Jun 12 18:01:39 2010
New Revision: 43313

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43313&view=rev
Log:
Make Wesnoth more compatible with C++0x (g++-4.5).

Modified:
    trunk/src/unit.cpp

Modified: trunk/src/unit.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.cpp?rev=43313&r1=43312&r2=43313&view=diff
==============================================================================
--- trunk/src/unit.cpp (original)
+++ trunk/src/unit.cpp Sat Jun 12 18:01:39 2010
@@ -1839,7 +1839,7 @@
        bool draw_bars = draw_bars_ ;
        if (draw_bars) {
                const int d = disp.hex_size();
-               SDL_Rect unit_rect = {xsrc, ysrc +adjusted_params.y, d, d};
+               SDL_Rect unit_rect = create_rect(xsrc, ysrc 
+adjusted_params.y, d, d);
                draw_bars = rects_overlap(unit_rect, disp.map_outside_area());
        }
 




Related Messages


Powered by MHonArc, Updated Sat Jun 12 18:20:19 2010