HAHAHAHA HEY! MOSKAU MOSKAU BADDABADBADBABDBAD

This commit is contained in:
MarcEricMartel 2023-11-27 14:42:56 -05:00
parent 702a65c5b0
commit 841b0176f6
2 changed files with 3 additions and 6 deletions

View File

@ -158,10 +158,9 @@ int Server::Ready() {
play.tid = log->tid;
sendPackTo<GameInfo>(m_sock_udp, &m_game, &m_buf, &sockad);
std::cout << m_game.seed << std::endl;
Connection* conn = new Connection(sock, sockad, *log, play);
m_players[log->sid] = conn;
delete log;
@ -222,8 +221,6 @@ void Server::Run() {
case INPUT:
if (Deserialize(&in, pck, &bsize)) {
m_players[in.sid]->AddInput(in);
//m_input_manifest[in.timestamp] = in;
//m_input_vector.push_back(in);
}
break;
case SYNC:
@ -234,7 +231,7 @@ void Server::Run() {
}
}
lsPck.clear();
//conn->getPacks(conn->getSock());
if (conn->m_nsync) {
conn->Run(m_world);
conn->sendPacks(m_sock_udp, m_players);

View File

@ -83,13 +83,13 @@ void RemotePlayer::Feed(const netprot::Output out) {
void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tran, float elapsedTime)
{
float x = GetPosition().x;
float y = GetPosition().y;
float z = GetPosition().z;
float width = 1.f;
float height = 1.7f;
std::cout << "hahahaha";
//Matrix4 mat4 = tran.GetMatrix();
//mat4 VP = pMatrix * vMatrix;