Don't enable the oxygen bar when frozen or in lava/slime; also fix the oxygen bar...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / sv_main.qc
index 3aef76e..2f2de95 100644 (file)
@@ -80,8 +80,6 @@ void CreatureFrame_Liquids(entity this)
                }
 
                CreatureFrame_hotliquids(this);
-               if (!this.air_finished)
-                       this.air_finished = time + autocvar_g_balance_contents_drowndelay;
        }
        else
        {
@@ -91,7 +89,6 @@ void CreatureFrame_Liquids(entity this)
                        this.flags &= ~FL_INWATER;
                        this.dmgtime = 0;
                }
-               this.air_finished = 0;
        }
 }