From e4936a090b3b8f4611d10eb86e11856cbd27cf0a Mon Sep 17 00:00:00 2001 From: Aaron Marks Date: Mon, 8 Aug 2005 10:12:45 +0000 Subject: Just some changes I forgot to commit -- I probably wont be able to work on tmwserv for a few days :( --- src/state.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/state.cpp') 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); } -- cgit v1.2.3-60-g2f50