From c76033113dd42ade97a8c0d0e24a1ae3058e8e8d Mon Sep 17 00:00:00 2001 From: PlatinumSkink Date: Thu, 8 Oct 2015 17:15:48 +0200 Subject: [PATCH] Small edit to temporarily solve a problem. --- src/game/Game/BallSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Game/BallSystem.cpp b/src/game/Game/BallSystem.cpp index ae57913..ce36cb8 100644 --- a/src/game/Game/BallSystem.cpp +++ b/src/game/Game/BallSystem.cpp @@ -141,7 +141,7 @@ void dd::Systems::BallSystem::UpdateEntity(double dt, EntityID entity, EntityID transformBall->Velocity.y = -2; } } - if (transformBall->Position.y < -EdgeY() - 4) { + if (transformBall->Position.y < -EdgeY() - 4 || transformBall->Position.y > EdgeY() + 4) { if (MultiBalls() != 0) { m_World->RemoveEntity(entity); Events::MultiBallLost e;