Fixed invisible item bug, maybe. Put 0.1 sec hitlag on impact with pad. Stable level loading?

This commit is contained in:
PlatinumSkink
2015-10-06 15:31:48 +02:00
parent a8219e2129
commit 5b425f27ae
6 changed files with 45 additions and 19 deletions
+4 -1
View File
@@ -212,7 +212,10 @@ void dd::Systems::PhysicsSystem::OnEntityCommit(EntityID entity)
}
if (physicsComponent) {
CreateBody(entity);
auto it = m_EntitiesToBodies.find(entity);
if(it == m_EntitiesToBodies.end()) {
CreateBody(entity);
}
} else if (waterComponent) {
CreateParticleGroup(entity);
} else if (particleEmitterComponent) {