Skip to content

Commit e38e406

Browse files
committed
fix: remove facing assignment in wall jump methods
1 parent bcc3486 commit e38e406

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/player/Player.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,6 @@ export class Player {
770770
this.vy = toFloat(this.cfg.jump.speed);
771771
this.applyLiftBoost();
772772
this.varJumpSpeed = this.vy;
773-
this.facing = dir as 1 | -1;
774773
this.toNormalState();
775774

776775
this.emit({ type: "wall_jump", wallDir: -dir, dirX: dir, dirY: -1 });
@@ -790,7 +789,6 @@ export class Player {
790789
this.vy = toFloat(this.cfg.jump.superWallJumpSpeed);
791790
this.applyLiftBoost();
792791
this.varJumpSpeed = this.vy;
793-
this.facing = dir as 1 | -1;
794792
this.toNormalState();
795793

796794
this.emit({ type: "wall_jump", wallDir: -dir, dirX: dir, dirY: -1 });

0 commit comments

Comments
 (0)