diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-24 01:30:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-24 01:32:02 +0300 |
commit | 3da7fa61442364be6713359690a35f89aa8e613a (patch) | |
tree | 48a941dbbb0234b897478aa50518112407d08e5b /src/net/tmwa | |
parent | 470aaad15a0f9a08dd12ab34c8602cd93fc57b76 (diff) | |
download | manaplus-3da7fa61442364be6713359690a35f89aa8e613a.tar.gz manaplus-3da7fa61442364be6713359690a35f89aa8e613a.tar.bz2 manaplus-3da7fa61442364be6713359690a35f89aa8e613a.tar.xz manaplus-3da7fa61442364be6713359690a35f89aa8e613a.zip |
Add support for show quest variables in skills window (evol only)
This allow use pseudo skills controlled by quest variables.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/questhandler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/tmwa/questhandler.cpp b/src/net/tmwa/questhandler.cpp index b0910cf7c..f819dfc16 100644 --- a/src/net/tmwa/questhandler.cpp +++ b/src/net/tmwa/questhandler.cpp @@ -22,6 +22,7 @@ #include "localplayer.h" +#include "gui/skilldialog.h" #include "gui/questswindow.h" #include "net/tmwa/protocol.h" @@ -78,6 +79,8 @@ void QuestHandler::processSetQuestVar(Net::MessageIn &msg A_UNUSED) questsWindow->updateQuest(var, val); questsWindow->rebuild(true); } + if (skillDialog) + skillDialog->updateQuest(var, val); } void QuestHandler::processPlayerQuests(Net::MessageIn &msg A_UNUSED) @@ -89,6 +92,8 @@ void QuestHandler::processPlayerQuests(Net::MessageIn &msg A_UNUSED) const int val = msg.readInt32(); // value if (questsWindow) questsWindow->updateQuest(var, val); + if (skillDialog) + skillDialog->updateQuest(var, val); } if (questsWindow) questsWindow->rebuild(false); |