]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix trigger_delay
authorMario <mario@smbclan.net>
Sat, 8 Oct 2016 18:07:17 +0000 (04:07 +1000)
committerMario <mario@smbclan.net>
Sat, 8 Oct 2016 18:07:17 +0000 (04:07 +1000)
qcsrc/common/triggers/trigger/delay.qc

index c5049da3931f73b8eab4288601d30fd71426d25a..dc1a781f81a0c81933fae9d47f63baf53506555a 100644 (file)
@@ -3,7 +3,7 @@
 void delay_use(entity this, entity actor, entity trigger)
 {
    setthink(this, SUB_UseTargets_self);
-   this.nextthink = this.wait;
+   this.nextthink = time + this.wait;
 }
 
 void delay_reset(entity this)