summaryrefslogtreecommitdiff
path: root/src/net/tmwa/specialhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-01-19 17:16:42 +0200
committerAndrei Karas <akaras@inbox.ru>2011-01-19 17:16:42 +0200
commit2db104b657d0403f1b8ce2eb2dc8ada4ee9d7f73 (patch)
tree949e1ad112f95b686a03c39d7697b2ea2b9d4ca3 /src/net/tmwa/specialhandler.cpp
parent31dda9ab4d1559749a0f8f181ce1f7948e482813 (diff)
downloadplus-2db104b657d0403f1b8ce2eb2dc8ada4ee9d7f73.tar.gz
plus-2db104b657d0403f1b8ce2eb2dc8ada4ee9d7f73.tar.bz2
plus-2db104b657d0403f1b8ce2eb2dc8ada4ee9d7f73.tar.xz
plus-2db104b657d0403f1b8ce2eb2dc8ada4ee9d7f73.zip
Add unknown skills to first skill tab. (in tmw Basic).
Diffstat (limited to 'src/net/tmwa/specialhandler.cpp')
-rw-r--r--src/net/tmwa/specialhandler.cpp10
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;