X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=ent_skateshop.c;h=fb9db29876bb5e521060d2726e37e7f12e1cba03;hb=5ae8830824afe4fd399f8a2f912e4df9735f9fd5;hp=e7049b5a6309b03c7a1b1088528bb16c795ae024;hpb=e5d79dc0355e04baecce8908e29b8e7569d1e857;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/ent_skateshop.c b/ent_skateshop.c index e7049b5..fb9db29 100644 --- a/ent_skateshop.c +++ b/ent_skateshop.c @@ -470,6 +470,7 @@ VG_STATIC void global_skateshop_preupdate(void) v3f dir = {0.0f,-1.0f,0.0f}; mdl_transform_vector( &ref->transform, dir, dir ); + m3x3_mulv( localplayer.invbasis, dir, dir ); player_vector_angles( localplayer.cam_override_angles, dir, 1.0f, 0.0f ); v3f lookat;