Skip to content

Commit

Permalink
stagex: fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaricchi committed Jun 16, 2024
1 parent a62119a commit aba2e7c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/stages/stagex/background_anim.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ void stagex_bg_trigger_tower_dissolve(void) {
void stagex_bg_init_fullstage(void) {
StageXDrawData *draw_data = stagex_get_draw_data();

Camera3D *cam = &stage_3d_context.cam;
// Camera3D *cam = &stage_3d_context.cam;
// cam->aspect = STAGE3D_DEFAULT_ASPECT; // FIXME
// cam->pos[0] = 0;
// cam->pos[1] = 0;
Expand Down
6 changes: 2 additions & 4 deletions src/stages/stagex/nonspells/boss_nonspells.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,17 +406,15 @@ TASK(yumemi_non6_slave, {
cmplx pos = slave->pos + 32 * cdir(s * (a + i*M_TAU/cnt));
cmplx aim = 2.5 * -d;

Projectile *p;

p = PROJECTILE(
PROJECTILE(
.proto = pp_crystal,
.color = RGBA(0.5, 0, 1, 1),
.pos = pos,
.move = move_linear(aim * r),
.layer = LAYER_BULLET | 0x10,
);

p = PROJECTILE(
PROJECTILE(
.proto = pp_crystal,
.color = RGBA(0.5, 0, 1, 1),
.pos = pos,
Expand Down
2 changes: 1 addition & 1 deletion src/stages/stagex/spells/sierpinski.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ TASK(slave, { cmplx origin; int type; }) {

INVOKE_SUBTASK(common_move,
.pos = &slave->pos,
.move_params = move_towards(ARGS.origin - 64i, 0.025),
.move_params = move_towards(0, ARGS.origin - 64i, 0.025),
.ent = ENT_BOX(slave).as_generic
);

Expand Down
5 changes: 4 additions & 1 deletion src/stages/stagex/timeline.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ TASK(glider_bullet, {
}
}

attr_unused
TASK(glider_fairy, {
cmplx pos; cmplx dir;
}) {
Expand Down Expand Up @@ -95,6 +96,7 @@ TASK(glider_fairy, {
}
}

attr_unused
TASK(aimgrind_fairy, {
cmplx pos;
}) {
Expand Down Expand Up @@ -151,7 +153,7 @@ TASK(rocket_proj, { cmplx pos; cmplx dir; }) {
}
}


attr_unused
TASK(rocket_fairy, { cmplx pos; }) {
Enemy *e = TASK_BIND(espawn_fairy_red(ARGS.pos, NULL));

Expand Down Expand Up @@ -524,6 +526,7 @@ TASK(laser45, { cmplx origin; cmplx dir; cmplx r; const Color *clr; }) {
}
}

attr_unused
TASK(fairy_laser45, { cmplx origin; }) {
auto e = TASK_BIND(espawn_huge_fairy(ARGS.origin, ITEMS(.points = 5)));
ecls_anyfairy_summon(e, 60);
Expand Down

0 comments on commit aba2e7c

Please sign in to comment.