Make codacy happy.
This commit is contained in:
parent
00a2b54759
commit
7625e02d21
|
@ -184,7 +184,7 @@ increase(int *number)
|
|||
START_TEST (test_linkedlist_each)
|
||||
{
|
||||
LinkedList *list;
|
||||
int *pop, *append;
|
||||
int *append;
|
||||
int i;
|
||||
|
||||
list = linkedlist_create();
|
||||
|
@ -198,7 +198,7 @@ START_TEST (test_linkedlist_each)
|
|||
linkedlist_each(&list, (void (*)(void*)) increase);
|
||||
|
||||
for (i = 0; i < 10; ++i) {
|
||||
pop = linkedlist_pop(&list);
|
||||
int *pop = linkedlist_pop(&list);
|
||||
ck_assert( i+1 == *pop );
|
||||
free(pop);
|
||||
pop = NULL;
|
||||
|
|
|
@ -128,7 +128,6 @@ void map_render(Map *map, Camera *cam)
|
|||
{
|
||||
unsigned int i, j, monster_count;
|
||||
Room *room;
|
||||
Monster *monster;
|
||||
|
||||
if (!timer_started(map->renderTimer)) {
|
||||
timer_start(map->renderTimer);
|
||||
|
@ -157,7 +156,7 @@ void map_render(Map *map, Camera *cam)
|
|||
|
||||
monster_count = linkedlist_size(map->monsters);
|
||||
for (i = 0; i < monster_count; ++i) {
|
||||
monster = linkedlist_get(&map->monsters, i);
|
||||
Monster *monster = linkedlist_get(&map->monsters, i);
|
||||
monster_render(monster, cam);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue