diff --git a/src/player.c b/src/player.c index d355e48..c6a3323 100644 --- a/src/player.c +++ b/src/player.c @@ -54,12 +54,13 @@ IMPL_UPDATE() { if (this->bonk_ceiling || entity_place_meeting(this, g, entity_type("spike")) != NULL) { + const unsigned int deathpart = entity_type("deathpart"); int dy = this->pos[1] - 6; for (int y = 0; y < 7; y++) { int dx = this->pos[0] - 6; for (int x = 0; x < 7; x++) { entity_init(game_create_entity(g), - entity_type("deathpart"), dx, dy); + deathpart, dx, dy); dx += 2; } dy += 2;