summaryrefslogtreecommitdiff
path: root/src/account-server/serverhandler.cpp
diff options
context:
space:
mode:
authorFreeyorp <Freeyorp101@hotmail.com>2010-08-29 19:47:25 +1200
committerFreeyorp <Freeyorp101@hotmail.com>2010-08-29 19:47:25 +1200
commit7fc50c2d31e1d289e9d2a950271c6d399fe0896a (patch)
tree1ebff71f7b1526425cc57e2e3b2681297e540f90 /src/account-server/serverhandler.cpp
parent853cbb6efdb79f879fabc2133acb8c11d9d4f7b1 (diff)
parent7db9f6fe36b737d2eec7c6070497035b0834def2 (diff)
downloadmanaserv-7fc50c2d31e1d289e9d2a950271c6d399fe0896a.tar.gz
manaserv-7fc50c2d31e1d289e9d2a950271c6d399fe0896a.tar.bz2
manaserv-7fc50c2d31e1d289e9d2a950271c6d399fe0896a.tar.xz
manaserv-7fc50c2d31e1d289e9d2a950271c6d399fe0896a.zip
Merge branch 'testing'
Conflicts: src/account-server/storage.cpp src/game-server/being.cpp src/game-server/being.hpp src/game-server/character.cpp src/game-server/character.hpp src/game-server/gamehandler.cpp src/game-server/inventory.cpp src/scripting/lua.cpp src/sql/mysql/createTables.sql src/sql/sqlite/createTables.sql
Diffstat (limited to 'src/account-server/serverhandler.cpp')
-rw-r--r--src/account-server/serverhandler.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/account-server/serverhandler.cpp b/src/account-server/serverhandler.cpp
index a6cf21f0..c68cb623 100644
--- a/src/account-server/serverhandler.cpp
+++ b/src/account-server/serverhandler.cpp
@@ -116,6 +116,7 @@ NetComputer *ServerHandler::computerConnected(ENetPeer *peer)
void ServerHandler::computerDisconnected(NetComputer *comp)
{
+ LOG_INFO("Game-server disconnected.");
delete comp;
}
@@ -562,10 +563,17 @@ void GameServerHandler::syncDatabase(MessageIn &msg)
int CharId = msg.readLong();
int CharPoints = msg.readLong();
int CorrPoints = msg.readLong();
- int AttribId = msg.readByte();
- int AttribValue = msg.readLong();
- storage->updateCharacterPoints(CharId, CharPoints, CorrPoints,
- AttribId, AttribValue);
+ storage->updateCharacterPoints(CharId, CharPoints, CorrPoints);
+ } break;
+
+ case SYNC_CHARACTER_ATTRIBUTE:
+ {
+ LOG_DEBUG("received SYNC_CHARACTER_ATTRIBUTE");
+ int charId = msg.readLong();
+ int attrId = msg.readLong();
+ double base = msg.readDouble();
+ double mod = msg.readDouble();
+ storage->updateAttribute(charId, attrId, base, mod);
} break;
case SYNC_CHARACTER_SKILL: