Changeset 26 for trunk/Classes/unit.cpp
- Timestamp:
- 2010-05-28 07:39:52 (2 years ago)
- File:
-
- 1 edited
-
trunk/Classes/unit.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Classes/unit.cpp
r19 r26 42 42 #define WRN_CONFIG LOG_STREAM(warn, config) 43 43 #define ERR_CONFIG LOG_STREAM(err, config) 44 45 extern bool gIsDragging; 44 46 45 47 namespace { … … 1981 1983 getUnitTextureAtlasInfo(buf, mods, ellipse_front); 1982 1984 } 1983 //if (ellipse_back != NULL) { 1984 if (ellipse_back.mapId != 0) { 1985 //disp.drawing_buffer_add(display::LAYER_UNIT_BG, loc, 1986 disp.drawing_buffer_add(display::LAYER_UNIT_FIRST, loc, 1987 display::tblit(xsrc, ysrc +adjusted_params.y-ellipse_floating, ellipse_back)); 1988 } 1989 1990 //if (ellipse_front != NULL) { 1991 if (ellipse_front.mapId != 0) { 1992 //disp.drawing_buffer_add(display::LAYER_UNIT_FG, loc, 1993 disp.drawing_buffer_add(display::LAYER_UNIT_FIRST, loc, 1994 display::tblit(xsrc, ysrc +adjusted_params.y-ellipse_floating, ellipse_front)); 1985 1986 // if (gIsDragging == false) 1987 { 1988 //if (ellipse_back != NULL) { 1989 if (ellipse_back.mapId != 0) { 1990 //disp.drawing_buffer_add(display::LAYER_UNIT_BG, loc, 1991 disp.drawing_buffer_add(display::LAYER_UNIT_FIRST, loc, 1992 display::tblit(xsrc, ysrc +adjusted_params.y-ellipse_floating, ellipse_back)); 1993 } 1994 1995 //if (ellipse_front != NULL) { 1996 if (ellipse_front.mapId != 0) { 1997 //disp.drawing_buffer_add(display::LAYER_UNIT_FG, loc, 1998 disp.drawing_buffer_add(display::LAYER_UNIT_FIRST, loc, 1999 display::tblit(xsrc, ysrc +adjusted_params.y-ellipse_floating, ellipse_front)); 2000 } 1995 2001 } 1996 2002 … … 2017 2023 } 2018 2024 2019 if (movement_file) 2025 if (movement_file) //&& gIsDragging == false) 2020 2026 { 2021 2027 textureAtlasInfo tinfo; … … 2058 2064 2059 2065 textureAtlasInfo crown; 2060 if ( getTextureAtlasInfo("misc/leader-crown.png", crown))2066 if (/*gIsDragging==false &&*/ getTextureAtlasInfo("misc/leader-crown.png", crown)) 2061 2067 { 2062 2068 disp.drawing_buffer_add(display::LAYER_UNIT_BAR, … … 2065 2071 } 2066 2072 2067 for(std::vector<shared_string>::const_iterator ov = overlays().begin(); ov != overlays().end(); ++ov) { 2068 const surface ov_img(image::get_image(*ov, image::SCALED_TO_ZOOM)); 2069 if(ov_img != NULL) { 2070 disp.drawing_buffer_add(display::LAYER_UNIT_BAR, 2071 loc, display::tblit(xsrc, ysrc +adjusted_params.y, ov_img)); 2073 //if (gIsDragging == false) 2074 { 2075 for(std::vector<shared_string>::const_iterator ov = overlays().begin(); ov != overlays().end(); ++ov) { 2076 const surface ov_img(image::get_image(*ov, image::SCALED_TO_ZOOM)); 2077 if(ov_img != NULL) { 2078 disp.drawing_buffer_add(display::LAYER_UNIT_BAR, 2079 loc, display::tblit(xsrc, ysrc +adjusted_params.y, ov_img)); 2080 } 2072 2081 } 2073 2082 }
Note: See TracChangeset
for help on using the changeset viewer.