From: Mario Date: Wed, 29 Jun 2016 00:50:44 +0000 (+1000) Subject: Fix racer staying underwater indefinitely X-Git-Tag: xonotic-v0.8.2~700^2~116 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a44d7a8eec0e37a9909fabebed0a72528c30183e;p=xonotic%2Fxonotic-data.pk3dir.git Fix racer staying underwater indefinitely --- diff --git a/qcsrc/common/vehicles/vehicle/racer.qc b/qcsrc/common/vehicles/vehicle/racer.qc index 9e1a84771..9c0f40210 100644 --- a/qcsrc/common/vehicles/vehicle/racer.qc +++ b/qcsrc/common/vehicles/vehicle/racer.qc @@ -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))