diff --git a/Escape-the-Dawn/Systems/PlayerSystem.cpp b/Escape-the-Dawn/Systems/PlayerSystem.cpp index 6e98ad6..ca9dfae 100644 --- a/Escape-the-Dawn/Systems/PlayerSystem.cpp +++ b/Escape-the-Dawn/Systems/PlayerSystem.cpp @@ -69,7 +69,6 @@ void Systems::PlayerSystem::UpdateEntity(double dt, EntityID entity, EntityID pa float TurnSpeed = 2.0f; glm::vec3 Euler = glm::eulerAngles(transform->Orientation); - LOG_DEBUG("Euler: %f", Euler.z); if(input->KeyState[GLFW_KEY_LEFT]) { transform->Position -= Ship_Right * (float)dt * speed; diff --git a/Escape-the-Dawn/World.cpp b/Escape-the-Dawn/World.cpp index 4c03697..e52c803 100644 --- a/Escape-the-Dawn/World.cpp +++ b/Escape-the-Dawn/World.cpp @@ -65,7 +65,7 @@ void World::RemoveEntity(EntityID entity) for (auto pair : m_EntityComponents[entity]) { auto type = pair.first; auto component = pair.second; - m_ComponentsOfType[type].erase(std::remove(m_ComponentsOfType[type].begin(), m_ComponentsOfType[type].end(), component)); + m_ComponentsOfType[type].remove(component); } RecycleEntityID(entity); } diff --git a/Escape-the-Dawn/World.h b/Escape-the-Dawn/World.h index 009c768..a0c7f22 100644 --- a/Escape-the-Dawn/World.h +++ b/Escape-the-Dawn/World.h @@ -81,7 +81,7 @@ protected: std::unordered_map> m_EntityProperties; - std::unordered_map>> m_ComponentsOfType; + std::unordered_map>> m_ComponentsOfType; std::unordered_map>> m_EntityComponents; EntityID GenerateEntityID();