diff options
author | Aaron Marks <nymacro@gmail.com> | 2005-08-08 10:12:45 +0000 |
---|---|---|
committer | Aaron Marks <nymacro@gmail.com> | 2005-08-08 10:12:45 +0000 |
commit | e4936a090b3b8f4611d10eb86e11856cbd27cf0a (patch) | |
tree | d3c8aa4d0c9ef8772cc5a5e60f970597f11f6d20 /src/state.cpp | |
parent | ca4fec29828b55ea66c5835ab20d2287bb1eb4ff (diff) | |
download | manaserv-e4936a090b3b8f4611d10eb86e11856cbd27cf0a.tar.gz manaserv-e4936a090b3b8f4611d10eb86e11856cbd27cf0a.tar.bz2 manaserv-e4936a090b3b8f4611d10eb86e11856cbd27cf0a.tar.xz manaserv-e4936a090b3b8f4611d10eb86e11856cbd27cf0a.zip |
Just some changes I forgot to commit -- I probably wont be able to work on tmwserv for a few days :(
Diffstat (limited to 'src/state.cpp')
-rw-r--r-- | src/state.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/state.cpp b/src/state.cpp index f605016d..72448eab 100644 --- a/src/state.cpp +++ b/src/state.cpp @@ -47,11 +47,11 @@ void State::update(ConnectionHandler &connectionHandler) b2++) { if (b != b2) { MessageOut msg; - msg.writeShort(SMSG_NEW_OBJECT); + msg.writeShort(SMSG_NEW_OBJECT); // of course this wont be send _all_ the time ;) msg.writeLong(OBJECT_PLAYER); // type msg.writeLong((int)b2->get()); // id - msg.writeLong(0); // x - msg.writeLong(0); // y + msg.writeLong(b2->get()->getX());// x + msg.writeLong(b2->get()->getY());// y connectionHandler.sendTo(b->get(), msg); } |