Correction: Not Stable!
This commit is contained in:
@@ -16,7 +16,7 @@ void dd::Systems::HitLagSystem::Update(double dt)
|
|||||||
if (IsPaused()) {
|
if (IsPaused()) {
|
||||||
if (HitLag()) {
|
if (HitLag()) {
|
||||||
SetHitLagTimer(HitLagTimer() += dt);
|
SetHitLagTimer(HitLagTimer() += dt);
|
||||||
std::cout << HitLagTimer() << std::endl;
|
//std::cout << HitLagTimer() << std::endl;
|
||||||
if (HitLagDuration() < HitLagTimer()) {
|
if (HitLagDuration() < HitLagTimer()) {
|
||||||
SetHitLagTimer(0);
|
SetHitLagTimer(0);
|
||||||
SetHitLag(false);
|
SetHitLag(false);
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ void dd::Systems::LevelSystem::UpdateEntity(double dt, EntityID entity, EntityID
|
|||||||
//Removes bricks that falls out of the stage.
|
//Removes bricks that falls out of the stage.
|
||||||
if (transform->Position.y < -10) {
|
if (transform->Position.y < -10) {
|
||||||
m_LooseBricks--;
|
m_LooseBricks--;
|
||||||
std::cout << m_LooseBricks << std::endl;
|
//std::cout << m_LooseBricks << std::endl;
|
||||||
m_World->RemoveEntity(entity);
|
m_World->RemoveEntity(entity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -96,7 +96,7 @@ void dd::Systems::LevelSystem::UpdateEntity(double dt, EntityID entity, EntityID
|
|||||||
} else {
|
} else {
|
||||||
if (brick != nullptr) {
|
if (brick != nullptr) {
|
||||||
m_LooseBricks--;
|
m_LooseBricks--;
|
||||||
std::cout << m_LooseBricks << std::endl;
|
//std::cout << m_LooseBricks << std::endl;
|
||||||
m_World->RemoveEntity(entity);
|
m_World->RemoveEntity(entity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user