]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix being able to move your player's body while dead by moving the mouse
authorterencehill <piuntn@gmail.com>
Sat, 2 May 2020 08:53:00 +0000 (10:53 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 2 May 2020 08:53:00 +0000 (10:53 +0200)
qcsrc/lib/csqcmodel/cl_player.qc

index 25fd5cdfa1d84874bf5bb70939ee35f027141e3b..19a6c046102c2f9e5797e464f4e4215f76add966 100644 (file)
@@ -567,7 +567,8 @@ void CSQCPlayer_SetCamera()
 #endif
                        CSQCPlayer_SetMinsMaxs(e);
 
-                       e.angles_y = input_angles.y;
+                       if (!IS_DEAD(e))
+                               e.angles.y = input_angles.y;
                }
 
                // relink