]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow pushing anything with pushable flag
authorMario <zacjardine@y7mail.com>
Sun, 30 Aug 2015 11:32:50 +0000 (21:32 +1000)
committerMario <zacjardine@y7mail.com>
Sun, 30 Aug 2015 11:32:50 +0000 (21:32 +1000)
qcsrc/server/miscfunctions.qc

index 5b7011ee743a1abb0ed55fc3723eca65f7741d23..55b8c2ea275665975078982819647dd378889b7e 100644 (file)
@@ -1968,10 +1968,12 @@ float LostMovetypeFollow(entity ent)
 
 float isPushable(entity e)
 {
-       if(e.iscreature)
-               return true;
        if(e.pushable)
                return true;
+       if(IS_VEHICLE(e))
+               return false;
+       if(e.iscreature)
+               return true;
        switch(e.classname)
        {
                case "body":