diff --git a/SQCSim2021/engine.cpp b/SQCSim2021/engine.cpp index c65d727..5eef6e3 100644 --- a/SQCSim2021/engine.cpp +++ b/SQCSim2021/engine.cpp @@ -386,6 +386,8 @@ void Engine::Render(float elapsedTime) { if (m_gamestate == GameState::PLAY) { + CenterMouse(); //Déplacement de centermouse dans l'action de jouer + //static float gameTime = elapsedTime; static float pollTime = 0; static float bulletTime = 0; @@ -598,7 +600,6 @@ void Engine::MouseMoveEvent(int x, int y) { if (x == (Width() / 2) && y == (Height() / 2)) return; - //CenterMouse(); } void Engine::MousePressEvent(const MOUSE_BUTTON& button, int x, int y) {