]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/sv_main.qc
Set air_finished to 0 while player is out of water instead of updating it to time...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / sv_main.qc
index ea89794357517cb79b5a83887712579e067dfc6b..3aef76e49a22074a71285ee56f29129b1799a103 100644 (file)
@@ -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,7 +91,7 @@ void CreatureFrame_Liquids(entity this)
                        this.flags &= ~FL_INWATER;
                        this.dmgtime = 0;
                }
-               this.air_finished = time + 12;
+               this.air_finished = 0;
        }
 }