aboutsummaryrefslogtreecommitdiff
path: root/enemy.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-10-01 20:40:11 +1000
committerquou <quou@disroot.org>2024-10-01 20:40:11 +1000
commit5ae0a01f81f98b6bed04ec6e3c6a687317489d91 (patch)
treee024ca4b6fcd63d946a1a73c76f077c326b95bfc /enemy.c
parentf06c36339c3c4d1c3287f710c6963c643bc5219d (diff)
special charge
Diffstat (limited to 'enemy.c')
-rw-r--r--enemy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/enemy.c b/enemy.c
index 66e0e73..1e46cb1 100644
--- a/enemy.c
+++ b/enemy.c
@@ -80,7 +80,7 @@ void update_enemy_phys(Enemy* e, const Map* map) {
);
}
-void update_enemy_hurt(Enemy* e, const World* w) {
+void update_enemy_hurt(Enemy* e, World* w) {
Rect a;
int i;
if (e->inv) {
@@ -97,6 +97,7 @@ void update_enemy_hurt(Enemy* e, const World* w) {
e->vx -= dz->vx;
e->vy -= dz->vy;
e->inv = enemy_inv_frames;
+ w->player.charge++;
}
}
}