From 2db104b657d0403f1b8ce2eb2dc8ada4ee9d7f73 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 19 Jan 2011 17:16:42 +0200 Subject: Add unknown skills to first skill tab. (in tmw Basic). --- src/net/tmwa/specialhandler.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/net/tmwa') 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; -- cgit v1.2.3-70-g09d2