review: player_common.h
[carveJwlIkooP6JGAAIwe30JlM.git] / player_common.c
index 760792acc696fc60f89f9dc5d34ddf0e2a65d045..5e1c88dba56a1fb2654dadc0152659f7b35877f3 100644 (file)
@@ -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 */