void blocktype_destroy(BlockType * self) { if (self->bitmaps) { { #line 50 LandArrayIterator __iter0__ = LandArrayIterator_first(self->bitmaps); #line 50 for (LandImage * pic = LandArrayIterator_item(self->bitmaps, &__iter0__); LandArrayIterator_next(self->bitmaps, &__iter0__); pic = LandArrayIterator_item(self->bitmaps, &__iter0__)) { land_image_destroy(pic); } } #line 52 land_array_destroy(self->bitmaps); } #line 53 land_free(self); }
void actors_reset(Actors * self) { land_array_destroy(self->array); self->array = land_array_new(); land_free(self->tilemap); self->tilemap = land_calloc(self->w * self->h * sizeof * self->tilemap); }