diff --git a/src/System.cpp b/src/System.cpp index 7bbd805..ecabb37 100644 --- a/src/System.cpp +++ b/src/System.cpp @@ -21,6 +21,7 @@ #define FPS 60 #include "System.hpp" +#include std::unique_ptr System::logger; @@ -180,9 +181,9 @@ void System::run() { asset_mngr.getModel("sphere")->draw(shaders.at("default")); } - for(unsigned int i = 0; i < 3; ++i) + for(int i = 0; i < 3; ++i) { - for(unsigned int j = 0; j < 3; ++j) + for(int j = 0; j < 3; ++j) { if(board[i][j] not_eq 0) { @@ -254,6 +255,7 @@ void System::handleKey(SDL_Keysym key){ break; } } + void System::syncInputs() { SDL_Event e; while(SDL_PollEvent(&e))