summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-18 14:20:14 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-18 14:20:14 -0600
commitf64903f3f139ba83e94c6260c39f88b8d31b793b (patch)
tree39ab7a883bf8e3fb6e920ab47659086c96a6d139 /src/net
parent203e995140e710475e1d8a3b512c8fe16a1acd96 (diff)
downloadmana-f64903f3f139ba83e94c6260c39f88b8d31b793b.tar.gz
mana-f64903f3f139ba83e94c6260c39f88b8d31b793b.tar.bz2
mana-f64903f3f139ba83e94c6260c39f88b8d31b793b.tar.xz
mana-f64903f3f139ba83e94c6260c39f88b8d31b793b.zip
Fix up the NPC interraction widnows a bit
Diffstat (limited to 'src/net')
-rw-r--r--src/net/buysellhandler.cpp7
-rw-r--r--src/net/playerhandler.cpp5
2 files changed, 3 insertions, 9 deletions
diff --git a/src/net/buysellhandler.cpp b/src/net/buysellhandler.cpp
index 520a1fe6..dcefe905 100644
--- a/src/net/buysellhandler.cpp
+++ b/src/net/buysellhandler.cpp
@@ -32,15 +32,12 @@
#include "../npc.h"
#include "../gui/buy.h"
+#include "../gui/buysell.h"
#include "../gui/chat.h"
#include "../gui/sell.h"
#include "../utils/gettext.h"
-extern BuyDialog *buyDialog;
-extern Window *buySellDialog;
-extern SellDialog *sellDialog;
-
BuySellHandler::BuySellHandler()
{
static const Uint16 _messages[] = {
@@ -64,8 +61,8 @@ void BuySellHandler::handleMessage(MessageIn *msg)
buyDialog->reset();
sellDialog->setVisible(false);
sellDialog->reset();
- buySellDialog->setVisible(true);
current_npc = msg->readInt32();
+ buySellDialog->setVisible(true);
break;
case SMSG_NPC_BUY:
diff --git a/src/net/playerhandler.cpp b/src/net/playerhandler.cpp
index 4cc29568..aa0ef16c 100644
--- a/src/net/playerhandler.cpp
+++ b/src/net/playerhandler.cpp
@@ -30,6 +30,7 @@
#include "../units.h"
#include "../gui/buy.h"
+#include "../gui/buysell.h"
#include "../gui/chat.h"
#include "../gui/gui.h"
#include "../gui/npc_text.h"
@@ -49,10 +50,6 @@
OkDialog *weightNotice = NULL;
OkDialog *deathNotice = NULL;
-extern BuyDialog *buyDialog;
-extern SellDialog *sellDialog;
-extern Window *buySellDialog;
-
// Max. distance we are willing to scroll after a teleport;
// everything beyond will reset the port hard.
static const int MAP_TELEPORT_SCROLL_DISTANCE = 8;