Skip to content

Commit 828b68d

Browse files
committed
Fix flail destruct deadlock #702
1 parent 96ba692 commit 828b68d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/game/objects/har.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,11 @@ void har_move(object *obj) {
465465
// Check for wall hits
466466
if(obj->pos.x <= ARENA_LEFT_WALL || obj->pos.x >= ARENA_RIGHT_WALL) {
467467
h->is_wallhugging = 1;
468+
if(player_frame_isset(obj, "cw") && player_frame_isset(obj, "d")) {
469+
DEBUG("disabling d tag on animation because of wall hit");
470+
obj->animation_state.disable_d = 1;
471+
}
472+
468473
} else {
469474
h->is_wallhugging = 0;
470475
}

0 commit comments

Comments
 (0)