Skip to content

Commit

Permalink
Fix ballos not changing forms properly
Browse files Browse the repository at this point in the history
  • Loading branch information
andwn committed Apr 18, 2024
1 parent 643f1b6 commit 3aa1240
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ai/ballos.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ enum BS_STATES {
CS_EXPLODE_BLOODY = 420,
CS_SPIN_PLATFORMS = 430
};

// forward
void ai_ballos_f2(Entity *e);
void ai_ballos_f3(Entity *e);

/*
enum { LESS_THAN, GREATER_THAN };
Expand Down Expand Up @@ -306,6 +311,7 @@ void ai_ballos_f1(Entity *e) {
case BS_ENTER_FORM:
{
e->type = OBJ_BALLOS_FORM2;
e->onFrame = &ai_ballos_f2;
}
break;
}
Expand Down Expand Up @@ -397,6 +403,7 @@ void ai_ballos_f2(Entity *e) {
if (e->x >= pixel_to_sub(312) && e->x <= pixel_to_sub(344)) {
e->state = CS_ENTER_FORM;
e->type = OBJ_BALLOS_FORM3;
e->onFrame = &ai_ballos_f3;
}
}

Expand Down

0 comments on commit 3aa1240

Please sign in to comment.