Units: fixed bad HP/XP bars fill rect offset

This commit is contained in:
Charles Dang 2017-06-15 06:39:25 +11:00
parent 37bcade3a1
commit d748cbcd23

View file

@ -421,8 +421,8 @@ void unit_drawer::draw_bar(int xpos, int ypos, size_t height, double filled, col
// Filled area dimensions.
SDL_Rect fill_rect;
fill_rect.x = bar_rect.x + unfilled;
fill_rect.y = bar_rect.y;
fill_rect.x = bar_rect.x;
fill_rect.y = bar_rect.y + unfilled;
fill_rect.w = bar_rect.w;
fill_rect.h = bar_rect.h - unfilled;