We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 495ce37 + 983c627 commit 232517aCopy full SHA for 232517a
src/main.cpp
@@ -78,8 +78,6 @@ int main()
78
79
// THE MAIN GAME LOOP
80
sf::Clock deltaClock;
81
- sf::Clock counterTime;
82
- int32_t timer = 40;
83
while (window.isOpen())
84
{
85
manager->handleEvents(circularBuffer);
@@ -88,17 +86,7 @@ int main()
88
86
window.clear();
89
87
manager->drawBoard();
90
91
- // txtPanel.setString(manager->getCurrentMsg());
92
- if (counterTime.getElapsedTime().asMilliseconds() >= 1000)
93
- {
94
- timer--;
95
- txtPanel.setString("00:" + fmt::format("{:02d}", timer));
96
- counterTime.restart();
97
- }
98
- if (timer <= 0)
99
100
- timer = 40;
101
+ txtPanel.setString(manager->getCurrentMsg());
102
window.draw(txtPanel);
103
ImGui::SFML::Render(window);
104
window.display();
0 commit comments