Skip to content

Commit dcd7dd9

Browse files
committed
Do not animate like crazy when carrying items on ladders
1 parent 3834a86 commit dcd7dd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/player.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ fn ACTION_PRG(level: *lvl.Level, action: PlayerAction) void {
10371037
}
10381038
const is_in_air = globals.YFALL != 0 or globals.jump_acceleration_counter != 0;
10391039
// attach to ladder in air
1040-
if(is_in_air and globals.LAST_ORDER != .Climb) {
1040+
if(is_in_air and (globals.LAST_ORDER != .Climb and globals.LAST_ORDER != .Climb_Carry)) {
10411041
NEW_FORM(player, if (globals.CARRY_FLAG) .Climb_Carry else .Climb);
10421042
GET_IMAGE(level);
10431043
player.sprite.speed_y = 0;

0 commit comments

Comments
 (0)