]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
target_give: support count fields of speed and invis powerups
authorbones_was_here <bones_was_here@xa.org.au>
Wed, 21 Jul 2021 08:21:02 +0000 (18:21 +1000)
committerbones_was_here <bones_was_here@xa.org.au>
Wed, 21 Jul 2021 08:21:02 +0000 (18:21 +1000)
qcsrc/server/compat/quake3.qc

index e65cbdba3118aff61bd128a967ac8f6ec72bdb5d..32c42d35400a151550fd309a038ad2513525900f 100644 (file)
@@ -225,6 +225,10 @@ void target_give_init(entity this)
                                this.invincible_finished += it.invincible_finished;
                        else if (it.strength_finished)
                                this.strength_finished += it.strength_finished;
+                       else if (it.speed_finished)
+                               this.speed_finished += it.speed_finished;
+                       else if (it.invisibility_finished)
+                               this.invisibility_finished += it.invisibility_finished;
                        else if (it.health)
                                this.health += it.health;
                        else if (it.armorvalue)