X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_common.c;h=5c5dda1fef5554398698b41437e16246688a9fca;hb=a99e5f5d5c16a3e865796a96ad648e3c570d32ac;hp=669c20ae3dc191d18758f7a4356b178199066338;hpb=f24a8cdd8ea6c3d762d26de2fc0700599bedbcad;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_common.c b/player_common.c index 669c20a..5c5dda1 100644 --- a/player_common.c +++ b/player_common.c @@ -237,6 +237,8 @@ VG_STATIC void player__cam_iterate( player_instance *player ) VG_STATIC void player_look( player_instance *player, v3f angles ) { + if( vg_ui.wants_mouse ) return; + angles[2] = 0.0f; v2f mouse_input; @@ -254,7 +256,6 @@ VG_STATIC void player_look( player_instance *player, v3f angles ) input_y *= -1.0f; angles[1] += input_y; - angles[1] = vg_clampf( angles[1], -VG_PIf*0.5f, VG_PIf*0.5f ); }