We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4075136 + 828b68d commit dea58c0Copy full SHA for dea58c0
src/game/objects/har.c
@@ -465,6 +465,11 @@ void har_move(object *obj) {
465
// Check for wall hits
466
if(obj->pos.x <= ARENA_LEFT_WALL || obj->pos.x >= ARENA_RIGHT_WALL) {
467
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
+
473
} else {
474
h->is_wallhugging = 0;
475
}
0 commit comments