move source content folders
[carveJwlIkooP6JGAAIwe30JlM.git] / player_walk.c
index 62aff8ddfe2af0635e61b254422a26d64308036f..1e15afcd0ed2eb68835904ebd008394d05413d71 100644 (file)
@@ -915,7 +915,8 @@ void player__walk_animate(void){
 }
 
 static void player_walk_pose_sit( struct player_walk_animator *animator,
-                                  player_pose *pose ){
+                                  player_pose *pose )
+{
    mdl_keyframe bpose[32];
 
    struct player_walk *w = &player_walk;
@@ -1037,7 +1038,9 @@ void player__walk_pose( void *_animator, player_pose *pose ){
 
    /* sit */
    if( (animator->activity == k_walk_activity_sit) ||
-       (animator->activity == k_walk_activity_sit_up) ){
+       (animator->activity == k_walk_activity_sit_up) )
+   {
+      skeleton_copy_pose( sk, apose, pose->keyframes );
       player_walk_pose_sit( animator, pose );
    }
    else if( animator->activity == k_walk_activity_odrop_in ){
@@ -1091,16 +1094,18 @@ void player__walk_post_animate(void){
 
 }
 
-void player__walk_im_gui(void){
+void player__walk_im_gui( ui_context *ctx )
+{
    struct player_walk *w = &player_walk;
-   player__debugtext( 1, "V:  %5.2f %5.2f %5.2f (%5.2fm/s)",
+   player__debugtext( ctx, 1, "V:  %5.2f %5.2f %5.2f (%5.2fm/s)",
       localplayer.rb.v[0], localplayer.rb.v[1], localplayer.rb.v[2],
       v3_length(localplayer.rb.v) );
-   player__debugtext( 1, "CO: %5.2f %5.2f %5.2f",localplayer.rb.co[0],
+   player__debugtext( ctx,
+                      1, "CO: %5.2f %5.2f %5.2f",localplayer.rb.co[0],
                                                  localplayer.rb.co[1],
                                                  localplayer.rb.co[2] );
-   player__debugtext( 1, "transition: %5.2f ", w->state.transition_t );
-   player__debugtext( 1, "activity: %s\n",
+   player__debugtext( ctx, 1, "transition: %5.2f ", w->state.transition_t );
+   player__debugtext( ctx, 1, "activity: %s\n",
                            (const char *[]){ "air",
                                              "ground",
                                              "sit",
@@ -1111,7 +1116,7 @@ void player__walk_im_gui(void){
                                              "odrop_in",
                                              "oregular" }
                                              [w->state.activity] );
-   player__debugtext( 1, "surface: %s\n",
+   player__debugtext( ctx, 1, "surface: %s\n",
                            (const char *[]){ "concrete",
                                              "wood",
                                              "grass",