summaryrefslogtreecommitdiff
path: root/src/state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.cpp')
-rw-r--r--src/state.cpp6
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);
}