Removes crazy old bug that never presented itself before
This isn't an issue with the current release because destruction of objects and artifact objects is identical. Only became an issue now that the artifact struct and destruction is chaning.
This commit is contained in:
parent
ca41520c06
commit
9b4a7b6cfc
|
@ -197,7 +197,7 @@ artifact_render(Artifact *a, Camera *cam)
|
||||||
Position pos = a->sprite->pos;
|
Position pos = a->sprite->pos;
|
||||||
pos.x += 4;
|
pos.x += 4;
|
||||||
pos.y += 4;
|
pos.y += 4;
|
||||||
particle_engine_sparkle(pos, (Dimension) { 24, 24 }, C_PURPLE, false);
|
particle_engine_sparkle(pos, DIM(24, 24), C_PURPLE, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -439,7 +439,7 @@ map_destroy(Map *map)
|
||||||
artifact_destroy(linkedlist_pop(&map->artifacts));
|
artifact_destroy(linkedlist_pop(&map->artifacts));
|
||||||
|
|
||||||
while (map->objects != NULL)
|
while (map->objects != NULL)
|
||||||
artifact_destroy(linkedlist_pop(&map->objects));
|
object_destroy(linkedlist_pop(&map->objects));
|
||||||
|
|
||||||
timer_destroy(map->monsterMoveTimer);
|
timer_destroy(map->monsterMoveTimer);
|
||||||
free(map);
|
free(map);
|
||||||
|
|
Loading…
Reference in New Issue