Slight calibration so Travelling doesn't necessarily kill the process just because something is Sticky.

This commit is contained in:
PlatinumSkink
2015-10-08 16:13:30 +02:00
parent 210c6a003b
commit 74d7e1feb7
+2 -3
View File
@@ -254,10 +254,9 @@ void dd::Systems::PhysicsSystem::UpdateEntity(double dt, EntityID entity, Entity
if (m_Travelling) {
auto transform = m_World->GetComponent<Components::Transform>(entity);
if (transform != nullptr) {
if (transform->Sticky == true) {
return;
if (!transform->Sticky) {
transform->Position.y -= 6.0f * dt;
}
transform->Position.y -= 6.0f * dt;
}
}
auto particle = m_World->GetComponent<Components::Particle>(entity);