]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 9e1a84771d1ddb57cc40a44e0e4978de7312c7a1..9c0f40210cc9b8d063c296d811730277fd4dd8fe 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))