X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_animation.h;h=e08991014629b05224ab5babd4754873af2cdc6a;hb=297468e5a3cc8c7805c16fdd615f42f3876eb908;hp=b9e28de2b5ad10398acc75fc666fba18fb1efdcb;hpb=147ecb98ce2d6a2b24b0d86436913a46888dea84;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_animation.h b/player_animation.h index b9e28de..e089910 100644 --- a/player_animation.h +++ b/player_animation.h @@ -161,7 +161,7 @@ VG_STATIC void player_animate(void) { float dirz = phys->reverse > 0.0f? 0.0f: 1.0f, dirx = phys->slip < 0.0f? 0.0f: 1.0f, - fly = phys->in_air? 1.0f: 0.0f; + fly = (phys->in_air|phys->grind)? 1.0f: 0.0f; player.fdirz = vg_lerpf( player.fdirz, dirz, 2.4f*vg.time_delta ); player.fdirx = vg_lerpf( player.fdirx, dirx, 0.6f*vg.time_delta );