diff options
author | zlago | 2025-01-01 11:41:30 +0100 |
---|---|---|
committer | zlago | 2025-01-01 11:41:30 +0100 |
commit | d8412decc77f38880b577b7c1f9b2e61aa438a66 (patch) | |
tree | 60360f3dbced7699d6bd6eef6e438ea6dcb98e53 /src/player.c | |
parent | 93ccfeeb9032eec91e0a4e5053f6646a5c73fe2d (diff) |
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player.c b/src/player.c index 0bf09de..126b2ea 100644 --- a/src/player.c +++ b/src/player.c @@ -81,7 +81,7 @@ static int slash_update(struct projectile *self) { continue; } if (hitbox_overlap(self->hitbox, entities.enemy[i].hitbox)) { - entities.enemy[i].hurt(entities.enemy + i, (struct damage) {self->ext == SLASH_STRONG? 2: 1, self->ext == SLASH_NORMAL? 10: 60}); + entities.enemy[i].hurt(entities.enemy + i, (struct damage) {(enum slash_type) self->ext == SLASH_STRONG? 2: 1, self->ext == SLASH_NORMAL? 10: 60}); } } struct particle *part = entities.particle + entities.particles; |