EEEEEEEH BO DEREK, EH
This commit is contained in:
@@ -80,6 +80,7 @@ void Connection::sendPacks(SOCKET sock, std::unordered_map<uint64_t, Connection*
|
||||
continue;
|
||||
//std::cout << m_playinfo.id << ": " << m_playinfo.name << ": " << conn->GetName() << std::endl;
|
||||
std::cout << out.id << ": " << out.position << std::endl;
|
||||
|
||||
sendPackTo<Output>(sock, &out, &m_bufout, conn->getAddr());
|
||||
}
|
||||
m_output_vector.pop_front();
|
||||
@@ -107,13 +108,14 @@ void Connection::Run(World* world) {
|
||||
in.keys.jump, false, el), world, el);
|
||||
|
||||
out.position = player.get()->GetPositionAbs();
|
||||
player.get()->GetPositionAbs().Afficher();
|
||||
out.direction = in.direction;
|
||||
out.timestamp = in.timestamp;
|
||||
out.id = m_playinfo.id;
|
||||
|
||||
m_output_manifest[out.timestamp] = out;
|
||||
m_output_vector.push_back(out);
|
||||
|
||||
|
||||
++m_last_in;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user