X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fsv_main.qc;h=3aef76e49a22074a71285ee56f29129b1799a103;hp=2f2de95b38f0e772b0cdb7023c698fc2cdc27c9f;hb=af6d36701da5864e21894d0776de06725355d4bc;hpb=7f79df2d74210253371fa24fab020c7f161113fc diff --git a/qcsrc/server/sv_main.qc b/qcsrc/server/sv_main.qc index 2f2de95b38..3aef76e49a 100644 --- a/qcsrc/server/sv_main.qc +++ b/qcsrc/server/sv_main.qc @@ -80,6 +80,8 @@ void CreatureFrame_Liquids(entity this) } CreatureFrame_hotliquids(this); + if (!this.air_finished) + this.air_finished = time + autocvar_g_balance_contents_drowndelay; } else { @@ -89,6 +91,7 @@ void CreatureFrame_Liquids(entity this) this.flags &= ~FL_INWATER; this.dmgtime = 0; } + this.air_finished = 0; } }