Quick-Fix for Score Error when additional frames appeared

This commit is contained in:
PlatinumSkink
2015-10-01 15:46:58 +02:00
parent 0743d882b9
commit f45908647c
4 changed files with 21 additions and 17 deletions
+3 -3
View File
@@ -246,10 +246,10 @@ bool dd::Systems::LevelSystem::OnContact(const dd::Events::Contact &event)
es.Score = brick->Score * ball->Combo;
EventBroker->Publish(es);
std::cout << "Combo: " << ball->Combo << std::endl;
//std::cout << "Combo: " << ball->Combo << std::endl;
//std::cout << NumberOfBricks() << std::endl;
//std::cout << "Brick Score: " << brick->Score << std::endl;
std::cout << "Score: " << Score() << std::endl;
//std::cout << "Score: " << Score() << std::endl;
}
return true;
@@ -257,7 +257,7 @@ bool dd::Systems::LevelSystem::OnContact(const dd::Events::Contact &event)
bool dd::Systems::LevelSystem::OnScoreEvent(const dd::Events::ScoreEvent &event)
{
SetScore(Score() += event.Score);
//SetScore(Score() += event.Score);
return true;
}