From: Lyberta Date: Sat, 25 Nov 2017 02:49:54 +0000 (+0300) Subject: Random items: Use noalign value set by mapper. X-Git-Tag: xonotic-v0.8.5~2426^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1024972833eab594cb94c71c900f783f6e0e55ee;p=xonotic%2Fxonotic-data.pk3dir.git Random items: Use noalign value set by mapper. --- diff --git a/qcsrc/common/mutators/mutator/random_items/sv_random_items.qc b/qcsrc/common/mutators/mutator/random_items/sv_random_items.qc index fe95a6957..47234be29 100644 --- a/qcsrc/common/mutators/mutator/random_items/sv_random_items.qc +++ b/qcsrc/common/mutators/mutator/random_items/sv_random_items.qc @@ -298,7 +298,8 @@ entity RandomItems_ReplaceMapItem(entity item) entity new_item; if (!expr_evaluate(autocvar_g_overkill)) { - new_item = Item_Create(strzone(new_classname), item.origin, true); + new_item = Item_Create(strzone(new_classname), item.origin, + item.noalign); random_items_is_spawning = false; if (new_item == NULL) { @@ -310,6 +311,7 @@ entity RandomItems_ReplaceMapItem(entity item) new_item = spawn(); new_item.classname = strzone(new_classname); new_item.spawnfunc_checked = true; + new_item.noalign = item.noalign; new_item.ok_item = true; Item_Initialize(new_item, new_classname); random_items_is_spawning = false;