]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix bots waiting for a teamed item to spawn again once they got it (e.g. megas and...
authorterencehill <piuntn@gmail.com>
Wed, 6 Sep 2017 15:24:40 +0000 (17:24 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 6 Sep 2017 15:24:40 +0000 (17:24 +0200)
qcsrc/common/t_items.qc

index 4fc2e38219c144e2a5801129419847e2444c4808..c116b440c42a4686ff8b034f0e3b800e2092c8fd 100644 (file)
@@ -901,6 +901,7 @@ LABEL(pickup)
                                if(it.itemdef) // is a registered item
                                {
                                        Item_Show(it, -1);
+                                       it.scheduledrespawntime = 0;
                                        RandomSelection_AddEnt(it, it.cnt, 0);
                                }
                        });