diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-17 01:16:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-17 01:16:05 +0300 |
commit | d1dbf42aee628e0d3566b92c6e967c6667ac3142 (patch) | |
tree | c7c6cb626316a137572f113c6e8d1d678083dd37 /src/actions/actions.cpp | |
parent | 86920f4524a6936e8f90b6651af7ffe07625f315 (diff) | |
download | plus-d1dbf42aee628e0d3566b92c6e967c6667ac3142.tar.gz plus-d1dbf42aee628e0d3566b92c6e967c6667ac3142.tar.bz2 plus-d1dbf42aee628e0d3566b92c6e967c6667ac3142.tar.xz plus-d1dbf42aee628e0d3566b92c6e967c6667ac3142.zip |
Dont use item palettes in createitems command.
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r-- | src/actions/actions.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
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; |