]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/vehicles/vehicle/bumblebee.qc
Use IS_DEAD everywhere
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / vehicles / vehicle / bumblebee.qc
index 26e64d0d2691578a777b6790214c69445eb75d66..ad236e07e3a34c15a97d94fb37d44c0d86332d91 100644 (file)
@@ -359,7 +359,7 @@ bool vehicles_valid_pilot()
                return false;
 
        if((!IS_PLAYER(other))
-       || (other.deadflag != DEAD_NO)
+       || (IS_DEAD(other))
        || (other.vehicle)
        || (DIFF_TEAM(other, self))
        ) { return false; }
@@ -426,7 +426,7 @@ float bumblebee_pilot_frame()
        vehic = self.vehicle;
        setself(vehic);
 
-       if(vehic.deadflag != DEAD_NO)
+       if(IS_DEAD(vehic))
        {
                setself(pilot);
                pilot.BUTTON_ATCK = pilot.BUTTON_ATCK2 = 0;
@@ -562,7 +562,7 @@ float bumblebee_pilot_frame()
                        }
                        else
                        {
-                               if(trace_ent.deadflag == DEAD_NO)
+                               if(!IS_DEAD(trace_ent))
                                        if((teamplay && trace_ent.team == pilot.team) || !teamplay)
                                        {
 
@@ -659,7 +659,7 @@ void bumblebee_exit(float eject)
 
        self.touch = vehicles_touch;
 
-       if(self.deadflag == DEAD_NO)
+       if(!IS_DEAD(self))
        {
                self.think = bumblebee_land;
                self.nextthink  = time;