From d1dbf42aee628e0d3566b92c6e967c6667ac3142 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 17 Aug 2015 01:16:05 +0300 Subject: Dont use item palettes in createitems command. --- src/actions/actions.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/actions/actions.cpp') diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 014ae10f8..feba9dcaa 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -1485,18 +1485,7 @@ impHandler0(createItems) if (colors >= 255) colors = 254; - if (!colors) - { - dialog->addItem(id, 0, ItemColor_one, 100, 0); - } - else - { - for (int f = 0; f < colors; f ++) - { - if (!info->getColor(fromInt(f, ItemColor)).empty()) - dialog->addItem(id, 0, fromInt(f, ItemColor), 100, 0); - } - } + dialog->addItem(id, 0, ItemColor_one, 100, 0); } dialog->sort(); return true; -- cgit v1.2.3-60-g2f50