X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_common.c;h=cb83d532598fcf37fd342ea44ba0fe218e9554fa;hb=ae7167001d7f442b08354b32873cd29c3fb4c74e;hp=df219ef5423fe54fa8a8ecf13c647d3029dbc0f1;hpb=fdd41609e59c7df548682b25001f0015dc1acbea;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_common.c b/player_common.c index df219ef..cb83d53 100644 --- a/player_common.c +++ b/player_common.c @@ -3,7 +3,6 @@ #include "ent_skateshop.h" #include "player.h" -#include "conf.h" #include "input.h" #include "menu.h" #include "vg/vg_perlin.h" @@ -306,26 +305,4 @@ VG_STATIC void player_look( player_instance *player, v3f angles ) angles[1] = vg_clampf( angles[1], -VG_PIf*0.5f, VG_PIf*0.5f ); } -struct player_board *player_get_player_board( struct player_instance *player ){ - if( localplayer.board_view_slot ){ - struct cache_board *cache_view = localplayer.board_view_slot; - if( cache_view->state == k_cache_board_state_loaded ){ - return &cache_view->board; - } - } - - return NULL; -} - -struct player_model *player_get_player_model( struct player_instance *player ){ - if( localplayer.playermodel_view_slot ){ - struct cache_playermodel *cache_view = localplayer.playermodel_view_slot; - if( cache_view->state == k_cache_board_state_loaded ){ - return &cache_view->model; - } - } - - return NULL; -} - #endif /* PLAYER_COMMON_C */