From c01f67b284db9c987680d121c11df2d9da56e2d0 Mon Sep 17 00:00:00 2001 From: aleksav013 Date: Mon, 7 Jun 2021 16:51:43 +0200 Subject: Smart pointers --- src/Game.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/Game.cpp') diff --git a/src/Game.cpp b/src/Game.cpp index c0bad0e..359be55 100644 --- a/src/Game.cpp +++ b/src/Game.cpp @@ -53,13 +53,13 @@ void Game::pwptex() for(size_t i=0;i mainfont,std::map maintex) +Game::Game(std::shared_ptr mainprozor,std::map> mainfont,std::map> maintex) { - prozor=glprozor; + prozor=mainprozor; font=mainfont; tex=maintex; @@ -111,7 +111,7 @@ bool Game::gameover() void Game::updatedt() { dt=sat.restart().asMicroseconds()/1000000.0; - if(dt>1) dt=0; + if(dt>0.5) dt=0; } void Game::updateui() { -- cgit v1.2.3