Author: esr Date: Tue Jun 26 04:19:09 2007 New Revision: 18450 URL: http://svn.gna.org/viewcvs/wesnoth?rev=18450&view=rev Log: More explanatory comments.
Modified: trunk/src/display.cpp Modified: trunk/src/display.cpp URL: http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.cpp?rev=18450&r1=18449&r2=18450&view=diff ============================================================================== --- trunk/src/display.cpp (original) +++ trunk/src/display.cpp Tue Jun 26 04:19:09 2007 @@ -1578,7 +1578,8 @@ int x = rect.x, y = rect.y; if(!report.empty()) { - // Add prefix, postfix elements. Make sure that they get the same tooltip as the guys + // Add prefix, postfix elements. Make sure + // that they get the same tooltip as the guys // around them. std::stringstream temp; Uint32 RGB = item->font_rgb(); @@ -1861,6 +1862,7 @@ // unshrouded terrain (the normal case) draw_terrain_on_tile(loc,tod, image_type, ADJACENT_BACKGROUND); + // village-control flags. surface flag(get_flag(terrain,loc)); if(flag != NULL) { SDL_Rect dstrect = { xpos, ypos, 0, 0 }; @@ -2007,10 +2009,10 @@ const bool left_foot = is_even(i - route_.steps.begin()); - //generally we want the footsteps facing toward the direction they're going - //to go next. - //if we're on the last step, then we want them facing according to where - //they came from, so we move i back by one + //generally we want the footsteps facing toward the direction + //they're going to go next. if we're on the last step, then + //we want them facing according to where they came from, so we + //move i back by one if(i+1 == route_.steps.end() && i != route_.steps.begin()) { --i; } _______________________________________________ Wesnoth-commits mailing list Wesnoth-commits@gna.org https://mail.gna.org/listinfo/wesnoth-commits