]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't do any drown checks if player is in a vehicle
authorMario <mario@smbclan.net>
Wed, 29 Jun 2016 00:47:30 +0000 (10:47 +1000)
committerMario <mario@smbclan.net>
Wed, 29 Jun 2016 00:47:30 +0000 (10:47 +1000)
qcsrc/server/cl_client.qc

index f2f0f4a35520283f8ec3e4cd09869abd8fd3b57d..f23cb8b5c1ee4b068012e228fa671d807f39ad20 100644 (file)
@@ -2387,7 +2387,7 @@ void DrownPlayer(entity this)
        if(IS_DEAD(this))
                return;
 
-       if (this.waterlevel != WATERLEVEL_SUBMERGED)
+       if (this.waterlevel != WATERLEVEL_SUBMERGED || this.vehicle)
        {
                if(this.air_finished < time)
                        PlayerSound(this, playersound_gasp, CH_PLAYER, VOICETYPE_PLAYERSOUND);