diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-09-17 13:51:37 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-09-17 13:51:37 +0000 |
commit | e846d4502b59a1a3b8d658a37ae5b5ce4aa1c00c (patch) | |
tree | 8feb8b51d731057412a59aeddbbe83b75b09912a /src/being.cpp | |
parent | 3bfcee0d9c033a46fe1b13795d89909c8fb6a239 (diff) | |
download | mana-client-e846d4502b59a1a3b8d658a37ae5b5ce4aa1c00c.tar.gz mana-client-e846d4502b59a1a3b8d658a37ae5b5ce4aa1c00c.tar.bz2 mana-client-e846d4502b59a1a3b8d658a37ae5b5ce4aa1c00c.tar.xz mana-client-e846d4502b59a1a3b8d658a37ae5b5ce4aa1c00c.zip |
Completed transition to use MessageOut.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/being.cpp b/src/being.cpp index 4ba88a33..0a6f1043 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -36,6 +36,7 @@ #include "gui/gui.h" +#include "net/messageout.h" #include "net/network.h" #include "net/protocol.h" @@ -66,8 +67,9 @@ Being* createBeing(unsigned int id, unsigned short job, Map *map) // If the being is a player, request the name if (being->getType() == Being::PLAYER) { - writeWord(0, 0x0094); - writeLong(2, being->getId());//readLong(2)); + MessageOut outMsg; + outMsg.writeShort(0x0094); + outMsg.writeLong(being->getId());//readLong(2)); writeSet(6); } // If the being is a monster then load the monsterset |