From 53a332d1f6d8533fee87d5962eea8160ab0f7f13 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 29 Jun 2016 10:47:30 +1000 Subject: [PATCH] Don't do any drown checks if player is in a vehicle --- qcsrc/server/cl_client.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index f2f0f4a35..f23cb8b5c 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -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); -- 2.39.2