From: Mario Date: Sat, 4 Mar 2017 16:30:52 +0000 (+1000) Subject: Update the state of the randomly chosen entity in teamed item groups before it is... X-Git-Tag: xonotic-v0.8.2~144 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a87dc1b33e9028f965c29346986d4d23f49c933f;p=xonotic%2Fxonotic-data.pk3dir.git Update the state of the randomly chosen entity in teamed item groups before it is re-spawned (fixes randomly selected item being invisible until it spawns) --- diff --git a/qcsrc/common/t_items.qc b/qcsrc/common/t_items.qc index c8e08bbcc..a90b424c9 100644 --- a/qcsrc/common/t_items.qc +++ b/qcsrc/common/t_items.qc @@ -873,7 +873,7 @@ LABEL(pickup) } }); e = RandomSelection_chosen_ent; - + Item_Show(e, 1); // reset its state so it is visible (extra sendflags doesn't matter, this happens anyway) } else e = this;