Link del tempo all'aggiornamento dei dati

This commit is contained in:
2026-06-22 12:40:36 +02:00
parent 539045bd80
commit 217635d871
4 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ int main() {
sf::Clock mainClock;
while (gs.window.isOpen())
{
curTime += mainClock.restart().asMilliseconds();
curTime += mainClock.restart().asMilliseconds() *(*gs.tMul) ;
if (curTime > T){
if (gs.play && pos+curTime/T < maj) pos += curTime / T;
curTime = 0;