X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player.h;h=0ed16b6f3a5f89af72d8b714ce1476da0e80840a;hb=b7b269bde94a997555de7f123688bf0abf92cc44;hp=b2a69bd4090ec7a6b157324f49051d2497076366;hpb=297468e5a3cc8c7805c16fdd615f42f3876eb908;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player.h b/player.h index b2a69bd..0ed16b6 100644 --- a/player.h +++ b/player.h @@ -11,6 +11,7 @@ #define PLAYER_REWIND_FRAMES 60*4 +#include "conf.h" #include "audio.h" #include "common.h" #include "world.h" @@ -44,7 +45,6 @@ VG_STATIC float k_walk_accel = 150.0f, k_walk_friction = 8.0f; -VG_STATIC int cl_playermdl_id = 0; VG_STATIC int freecam = 0; VG_STATIC int walk_grid_iterations = 1; VG_STATIC float fc_speed = 10.0f; @@ -69,7 +69,6 @@ VG_STATIC struct gplayer /* Utility */ float vswitch, slip, slip_last, reverse; - float grab, jump, pushing, push_time; v2f grab_mouse_delta; @@ -293,20 +292,12 @@ VG_STATIC void player_init(void) /* 1 }; for( int i=0; itransform[3] ); + shader_viewchar_uPv( cam->mtx.pv ); shader_link_standard_ub( _shader_viewchar.id, 2 ); glUniformMatrix4x3fv( _uniform_viewchar_uTransforms, player.mdl.sk.bone_count,