Skip to content

Commit

Permalink
Units: fixed bad HP/XP bars fill rect offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Mar 13, 2018
1 parent 65fbe55 commit 2e5fafc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/units/drawer.cpp
Expand Up @@ -407,8 +407,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;

Expand Down

0 comments on commit 2e5fafc

Please sign in to comment.