projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
my fucking fingers
[carveJwlIkooP6JGAAIwe30JlM.git]
/
player_common.c
diff --git
a/player_common.c
b/player_common.c
index 669c20ae3dc191d18758f7a4356b178199066338..5c5dda1fef5554398698b41437e16246688a9fca 100644
(file)
--- 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 );
}