No longer spawns a f**king sphere.
This commit is contained in:
@@ -409,14 +409,6 @@ void Server::createPlayer()
|
|||||||
for (PlayerID playerIndex = 0; playerIndex < m_MaxConnections; playerIndex++) {
|
for (PlayerID playerIndex = 0; playerIndex < m_MaxConnections; playerIndex++) {
|
||||||
if (m_PlayerDefinitions[playerIndex].Endpoint.address() == boost::asio::ip::address()) {
|
if (m_PlayerDefinitions[playerIndex].Endpoint.address() == boost::asio::ip::address()) {
|
||||||
m_PlayerDefinitions[playerIndex] = m_ConnectedUsers[userIndex];
|
m_PlayerDefinitions[playerIndex] = m_ConnectedUsers[userIndex];
|
||||||
EntityID entityID = m_World->CreateEntity();
|
|
||||||
ComponentWrapper transform = m_World->AttachComponent(entityID, "Transform");
|
|
||||||
transform["Position"] = glm::vec3(-1.5f, 0.f, 0.f);
|
|
||||||
ComponentWrapper model = m_World->AttachComponent(entityID, "Model");
|
|
||||||
model["Resource"] = "Models/Core/UnitSphere.obj";
|
|
||||||
model["Color"] = glm::vec4(rand()%255 / 255.f, rand()%255 / 255.f, rand() %255 / 255.f, 1.f);
|
|
||||||
ComponentWrapper player = m_World->AttachComponent(entityID, "Player");
|
|
||||||
m_PlayerDefinitions[playerIndex].EntityID = entityID;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user