Fix racer staying underwater indefinitely
authorMario <mario@smbclan.net>
Wed, 29 Jun 2016 00:50:44 +0000 (10:50 +1000)
committerMario <mario@smbclan.net>
Wed, 29 Jun 2016 00:50:44 +0000 (10:50 +1000)
qcsrc/common/vehicles/vehicle/racer.qc

index 9e1a847..9c0f402 100644 (file)
@@ -186,7 +186,7 @@ bool racer_frame(entity this)
 
        traceline(vehic.origin, vehic.origin + '0 0 1', MOVE_NOMONSTERS, this);
        int cont = trace_dpstartcontents;
-       if(cont & DPCONTENTS_WATER)
+       if(!(cont & DPCONTENTS_WATER))
                vehic.air_finished = time + autocvar_g_vehicle_racer_water_time;
 
        if(IS_DEAD(vehic))