]> 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 2f2de95b38f0e772b0cdb7023c698fc2cdc27c9f..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,6 +91,7 @@ void CreatureFrame_Liquids(entity this)
                        this.flags &= ~FL_INWATER;
                        this.dmgtime = 0;
                }
+               this.air_finished = 0;
        }
 }