projects
/
TDDC76_proj.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fb1bc0
)
cleanup in main, Alma och Malin
author
Alma Dejus
<almde515@student.liu.se>
Mon, 11 Dec 2023 08:46:24 +0000
(09:46 +0100)
committer
Alma Dejus
<almde515@student.liu.se>
Mon, 11 Dec 2023 08:46:24 +0000
(09:46 +0100)
src/_main.cc
patch
|
blob
|
history
diff --git
a/src/_main.cc
b/src/_main.cc
index 0204bc028b0470a9a6266d56fc9ae6cdfaea35d9..f6a529b61b09cc893056eaca995570330b7c2511 100644
(file)
--- a/
src/_main.cc
+++ b/
src/_main.cc
@@
-68,8
+68,7
@@
int main ()
window.display();
// Make game run at constant fps
- // std::cout << "frametime: " << game_clock.getElapsedTime().asSeconds() << std::endl;
- sf::sleep(sf::milliseconds(1000.0 / FPS) - game_clock.getElapsedTime());
+ sf::sleep(sf::milliseconds(1000.0/FPS) - game_clock.getElapsedTime());
game_context.time = game_clock.restart();
}