summaryrefslogtreecommitdiff
path: root/src/spellshortcut.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-25 01:20:00 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-25 01:38:14 +0200
commit5322d978519f9d5677d2096e1167439c84b23cd1 (patch)
treedfe6324fb6d3b573290687716dd98e45efb76019 /src/spellshortcut.cpp
parent473dc9b1949ba7c51b59146815969b723a748d6d (diff)
downloadmanaverse-5322d978519f9d5677d2096e1167439c84b23cd1.tar.gz
manaverse-5322d978519f9d5677d2096e1167439c84b23cd1.tar.bz2
manaverse-5322d978519f9d5677d2096e1167439c84b23cd1.tar.xz
manaverse-5322d978519f9d5677d2096e1167439c84b23cd1.zip
Add tabs to spells window. Now it 5 tabs.
Also dont save to configs default cell items for different item containers.
Diffstat (limited to 'src/spellshortcut.cpp')
-rw-r--r--src/spellshortcut.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/spellshortcut.cpp b/src/spellshortcut.cpp
index 5f3da7c4d..89a82401e 100644
--- a/src/spellshortcut.cpp
+++ b/src/spellshortcut.cpp
@@ -48,7 +48,7 @@ SpellShortcut::~SpellShortcut()
void SpellShortcut::load()
{
- for (int f = 0; f < SPELL_SHORTCUT_ITEMS; f ++)
+ for (int f = 0; f < SPELL_SHORTCUT_ITEMS * SPELL_SHORTCUT_TABS; f ++)
mItems[f] = -1;
if (!spellManager)
@@ -58,7 +58,8 @@ void SpellShortcut::load()
int k = 0;
for (std::vector<TextCommand*>::const_iterator i = spells.begin(),
- i_end = spells.end(); i != i_end && k < SPELL_SHORTCUT_ITEMS; ++i)
+ i_end = spells.end(); i != i_end
+ && k < SPELL_SHORTCUT_ITEMS * SPELL_SHORTCUT_TABS; ++i)
{
mItems[k++] = (*i)->getId();
}