From 74d7e1feb74a00cebff31ab7844ab8ca7913e5a5 Mon Sep 17 00:00:00 2001 From: PlatinumSkink Date: Thu, 8 Oct 2015 16:13:30 +0200 Subject: [PATCH] Slight calibration so Travelling doesn't necessarily kill the process just because something is Sticky. --- src/game/Physics/PhysicsSystem.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/game/Physics/PhysicsSystem.cpp b/src/game/Physics/PhysicsSystem.cpp index 075f287..86b7d9f 100755 --- a/src/game/Physics/PhysicsSystem.cpp +++ b/src/game/Physics/PhysicsSystem.cpp @@ -254,10 +254,9 @@ void dd::Systems::PhysicsSystem::UpdateEntity(double dt, EntityID entity, Entity if (m_Travelling) { auto transform = m_World->GetComponent(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(entity);