]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Implement support for target_delay (compatibility spawn function for target_relay...
authorMario <mario.mario@y7mail.com>
Tue, 22 Sep 2020 13:53:49 +0000 (23:53 +1000)
committerMario <mario.mario@y7mail.com>
Tue, 22 Sep 2020 13:54:10 +0000 (23:54 +1000)
qcsrc/common/mapobjects/trigger/relay.qc

index f99d364aec5bdb560d9c1f51f5d92b3f8e77d714..da4664c9d28a10287ba921424d221d751e9b27ad 100644 (file)
@@ -23,4 +23,13 @@ spawnfunc(target_relay)
 {
        spawnfunc_trigger_relay(this);
 }
+
+spawnfunc(target_delay)
+{
+       if(!this.wait)
+               this.wait = 1;
+       if(!this.delay)
+               this.delay = this.wait; // fall back to quake 3 field
+       spawnfunc_trigger_relay(this);
+}
 #endif