More codacy stuff

This commit is contained in:
Linus_Probert 2018-01-23 14:45:05 +01:00
parent d6e6e9449a
commit 62b963e643
1 changed files with 1 additions and 2 deletions

View File

@ -93,7 +93,6 @@ gui_set_max_health(Gui *gui, int max, SDL_Renderer *renderer)
void void
gui_set_current_health(Gui *gui, int current) gui_set_current_health(Gui *gui, int current)
{ {
Sprite *sprite;
int partial = current % 3; int partial = current % 3;
int full = (current - partial)/3; int full = (current - partial)/3;
int count = 0; int count = 0;
@ -103,7 +102,7 @@ gui_set_current_health(Gui *gui, int current)
LinkedList *item = gui->health; LinkedList *item = gui->health;
while (item != NULL) { while (item != NULL) {
sprite = (Sprite*) item->data; Sprite *sprite = (Sprite*) item->data;
if (count < full) { if (count < full) {
sprite->clip.x = 0; sprite->clip.x = 0;
} else if (count == full) { } else if (count == full) {