summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-02 03:47:43 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-02 05:52:11 +0300
commit93257ccd9617dbc37784076d54c80c915722397d (patch)
tree66b5bd0b47e55e575f25c1debe95c3eef401c607 /src
parentb55fdde5bcc4b995585b757f2b060289477b2148 (diff)
downloadplus-93257ccd9617dbc37784076d54c80c915722397d.tar.gz
plus-93257ccd9617dbc37784076d54c80c915722397d.tar.bz2
plus-93257ccd9617dbc37784076d54c80c915722397d.tar.xz
plus-93257ccd9617dbc37784076d54c80c915722397d.zip
Fix compilation with manaserv.
Diffstat (limited to 'src')
-rw-r--r--src/net/manaserv/attributes.cpp8
-rw-r--r--src/net/manaserv/inventoryhandler.cpp4
-rw-r--r--src/net/manaserv/inventoryhandler.h4
-rw-r--r--src/net/manaserv/itemhandler.cpp6
-rw-r--r--src/net/manaserv/loginhandler.cpp1
5 files changed, 12 insertions, 11 deletions
diff --git a/src/net/manaserv/attributes.cpp b/src/net/manaserv/attributes.cpp
index c032b6bb8..662032e29 100644
--- a/src/net/manaserv/attributes.cpp
+++ b/src/net/manaserv/attributes.cpp
@@ -73,16 +73,16 @@ namespace Attributes
static unsigned int attributeMinimum = 0;
static unsigned int attributeMaximum = 0;
- unsigned int getCreationPoints() const
+ unsigned int getCreationPoints()
{ return creationPoints; }
- unsigned int getAttributeMinimum() const
+ unsigned int getAttributeMinimum()
{ return attributeMinimum; }
- unsigned int getAttributeMaximum() const
+ unsigned int getAttributeMaximum()
{ return attributeMaximum; }
- std::vector<std::string>& getLabels() const
+ std::vector<std::string>& getLabels()
{ return attributeLabels; }
/**
diff --git a/src/net/manaserv/inventoryhandler.cpp b/src/net/manaserv/inventoryhandler.cpp
index 47f149eca..2c9c84c76 100644
--- a/src/net/manaserv/inventoryhandler.cpp
+++ b/src/net/manaserv/inventoryhandler.cpp
@@ -192,8 +192,8 @@ void InventoryHandler::closeStorage(int type A_UNUSED)
// TODO
}
-void InventoryHandler::moveItem(int source A_UNUSED, int slot A_UNUSED,
- int amount A_UNUSED, int destination A_UNUSED)
+void InventoryHandler::moveItem2(int source A_UNUSED, int slot A_UNUSED,
+ int amount A_UNUSED, int destination A_UNUSED)
{
// TODO
}
diff --git a/src/net/manaserv/inventoryhandler.h b/src/net/manaserv/inventoryhandler.h
index 8471b1caf..af340399e 100644
--- a/src/net/manaserv/inventoryhandler.h
+++ b/src/net/manaserv/inventoryhandler.h
@@ -88,8 +88,8 @@ class InventoryHandler : public MessageHandler, Net::InventoryHandler
void closeStorage(int type);
- void moveItem(int source, int slot, int amount,
- int destination);
+ void moveItem2(int source, int slot, int amount,
+ int destination);
size_t getSize(int type) const;
diff --git a/src/net/manaserv/itemhandler.cpp b/src/net/manaserv/itemhandler.cpp
index 021d57cf3..8ebe965ec 100644
--- a/src/net/manaserv/itemhandler.cpp
+++ b/src/net/manaserv/itemhandler.cpp
@@ -66,9 +66,9 @@ void ItemHandler::handleMessage(Net::MessageIn &msg)
if (Map *map = game->getCurrentMap())
{
actorSpriteManager->createItem(id, itemId,
- x / map->getTileWidth(),
- y / map->getTileHeight(),
- 0, 1);
+ x / map->getTileWidth(),
+ y / map->getTileHeight(),
+ 0, 1, 0, 0);
}
else
{
diff --git a/src/net/manaserv/loginhandler.cpp b/src/net/manaserv/loginhandler.cpp
index f1c597c00..f93d8e44c 100644
--- a/src/net/manaserv/loginhandler.cpp
+++ b/src/net/manaserv/loginhandler.cpp
@@ -33,6 +33,7 @@
#include "net/manaserv/protocol.h"
#include "utils/gettext.h"
+#include "utils/paths.h"
#include "utils/sha256.h"
extern Net::LoginHandler *loginHandler;