Units: fixed bad HP/XP bars fill rect offset
This commit is contained in:
parent
37bcade3a1
commit
d748cbcd23
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue