]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Viewmodels: cl_bobmodel: check onground for other players too
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 29 Nov 2015 10:53:10 +0000 (21:53 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 29 Nov 2015 10:53:10 +0000 (21:53 +1100)
qcsrc/client/view.qc

index 47a1c0bfc5f7538a63d2ab9c134d3b7763d26b5e..45629f206af44a9dbf4ee3491dfbe55a6068dd08 100644 (file)
@@ -119,7 +119,7 @@ void viewmodel_animate(entity this)
 
        entity view = CSQCModel_server2csqc(player_localentnum);
 
-       bool clonground = boolean(view.pmove_flags & PMF_ONGROUND);
+       bool clonground = !(view.anim_implicit_state & ANIMIMPLICITSTATE_INAIR);
        static bool oldonground;
        static float hitgroundtime;
        static float lastongroundtime;