X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=sidebyside;f=player_render.c;h=f34aa1665028c9ac4909508e56503648f59694bb;hb=d043e7ab9cac90df65d806c02f79756076a377cb;hp=33724245771fe10b0f07a3a13d5e74ee9e883fbe;hpb=5f34184cad016aa2f8ea530b3be009703459e981;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_render.c b/player_render.c index 3372424..f34aa16 100644 --- a/player_render.c +++ b/player_render.c @@ -5,6 +5,7 @@ #include "player_render.h" #include "camera.h" #include "player_model.h" +#include "ent_skateshop.h" #include "shaders/model_character_view.h" #include "shaders/model_board_view.h" @@ -159,8 +160,7 @@ VG_STATIC void player__pre_render( player_instance *player ) _player_post_animate[ player->subsystem ]( player ); struct player_avatar *av = player->playeravatar; - - struct player_board *board = player->board; + struct player_board *board = player_get_player_board( player ); v3f vp0, vp1; @@ -438,7 +438,7 @@ PLAYER_API void player__render( camera *cam, player_instance *player ) mesh_bind( &player->playermodel->mesh ); mesh_draw( &player->playermodel->mesh ); - struct player_board *board = player->board; + struct player_board *board = player_get_player_board( player ); render_board( cam, world, board, player->playeravatar->sk.final_mtx[ player->playeravatar->id_board],