Skip to content

Commit 232517a

Browse files
Merge pull request #127 from Longwater1234/dev
revert to older code
2 parents 495ce37 + 983c627 commit 232517a

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/main.cpp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ int main()
7878

7979
// THE MAIN GAME LOOP
8080
sf::Clock deltaClock;
81-
sf::Clock counterTime;
82-
int32_t timer = 40;
8381
while (window.isOpen())
8482
{
8583
manager->handleEvents(circularBuffer);
@@ -88,17 +86,7 @@ int main()
8886
window.clear();
8987
manager->drawBoard();
9088

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-
}
89+
txtPanel.setString(manager->getCurrentMsg());
10290
window.draw(txtPanel);
10391
ImGui::SFML::Render(window);
10492
window.display();

0 commit comments

Comments
 (0)