]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Random items: Use noalign value set by mapper.
authorLyberta <lyberta@lyberta.net>
Sat, 25 Nov 2017 02:49:54 +0000 (05:49 +0300)
committerLyberta <lyberta@lyberta.net>
Sat, 25 Nov 2017 02:49:54 +0000 (05:49 +0300)
qcsrc/common/mutators/mutator/random_items/sv_random_items.qc

index fe95a6957f37184c9761d4cfc394eb9062412d04..47234be290531e7d8a4966e313ac0f2bdb1acde7 100644 (file)
@@ -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;