X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_walk.c;h=952db860a638b5d0218d2c7da0f6a392a34f9eb4;hb=7338016c5cf8bffb8e490b359b7ee02cbcb86416;hp=3645e2dbda6ec1e355fd96243dd06818c5e2a496;hpb=5b44aed954c9988823026edf4ecdb59d446a0843;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_walk.c b/player_walk.c index 3645e2d..952db86 100644 --- a/player_walk.c +++ b/player_walk.c @@ -1048,11 +1048,14 @@ static void player__walk_animator_exchange( bitpack_ctx *ctx, void *data ){ bitpack_qf32( ctx, 8, -k_sit_pitch_limit, k_sit_pitch_limit, &animator->pitch ); - bitpack_bytes( ctx, 8, &animator->outro_type ); - if( animator->outro_type ){ - bitpack_bytes(ctx, sizeof(animator->foot_anchor), animator->foot_anchor ); - bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->outro_t ); - bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->commit_t ); + for( int i=0; i<1; i++ ){ /* without this you get a warning from gcc. lol */ + bitpack_bytes( ctx, 8, &animator->outro_type ); + if( animator->outro_type ){ + bitpack_bytes( ctx, sizeof(animator->foot_anchor), + animator->foot_anchor ); + bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->outro_t ); + bitpack_qf32( ctx, 8, 0.0f, 1.0f, &animator->commit_t ); + } } } #endif /* PLAYER_DEVICE_WALK_H */