diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-01-19 17:16:42 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-01-19 17:16:42 +0200 |
commit | 2db104b657d0403f1b8ce2eb2dc8ada4ee9d7f73 (patch) | |
tree | 949e1ad112f95b686a03c39d7697b2ea2b9d4ca3 /src/net/tmwa | |
parent | 31dda9ab4d1559749a0f8f181ce1f7948e482813 (diff) | |
download | manaverse-2db104b657d0403f1b8ce2eb2dc8ada4ee9d7f73.tar.gz manaverse-2db104b657d0403f1b8ce2eb2dc8ada4ee9d7f73.tar.bz2 manaverse-2db104b657d0403f1b8ce2eb2dc8ada4ee9d7f73.tar.xz manaverse-2db104b657d0403f1b8ce2eb2dc8ada4ee9d7f73.zip |
Add unknown skills to first skill tab. (in tmw Basic).
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/specialhandler.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/net/tmwa/specialhandler.cpp b/src/net/tmwa/specialhandler.cpp index d502cc85f..95478d5bf 100644 --- a/src/net/tmwa/specialhandler.cpp +++ b/src/net/tmwa/specialhandler.cpp @@ -110,7 +110,10 @@ void SpecialHandler::handleMessage(Net::MessageIn &msg) PlayerInfo::setStatBase(skillId, level); if (skillDialog) - skillDialog->setModifiable(skillId, up); + { + if (!skillDialog->setModifiable(skillId, up)) + skillDialog->addSkill(skillId, level, up); + } } break; } @@ -124,7 +127,10 @@ void SpecialHandler::handleMessage(Net::MessageIn &msg) PlayerInfo::setStatBase(skillId, level); if (skillDialog) - skillDialog->setModifiable(skillId, up); + { + if (!skillDialog->setModifiable(skillId, up)) + skillDialog->addSkill(skillId, level, up); + } } break; |