X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_common.c;h=5e1c88dba56a1fb2654dadc0152659f7b35877f3;hb=fdb2376a03749b901ff83f28be54b6dd6caf4b72;hp=760792acc696fc60f89f9dc5d34ddf0e2a65d045;hpb=ad89a3e4bba4abe99abc48b1760822ca23d03d82;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_common.c b/player_common.c index 760792a..5e1c88d 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" @@ -76,7 +75,8 @@ VG_STATIC void player__cam_iterate( player_instance *player ) #endif v3_copy( (v3f){0.0f,0.0f,0.0f}, player->fpv_offset ); v3_copy( (v3f){0.0f,1.4f,0.0f}, player->tpv_offset ); - v3_add( TEMP_TPV_EXTRA, player->tpv_offset, player->tpv_offset ); + v3_add( player->tpv_offset_extra, player->tpv_offset, + player->tpv_offset ); } player->cam_velocity_constant = 0.25f; @@ -306,18 +306,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 ) -{ - struct player_board *board = NULL; - - if( localplayer.board_view_slot ){ - struct cache_board *cache_view = localplayer.board_view_slot; - if( cache_view->state == k_cache_board_state_loaded ){ - board = &cache_view->board; - } - } - - return board; -} - #endif /* PLAYER_COMMON_C */