From d4e43b6abd1e694c1b159934d5e05506fc5550ab Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 6 Jan 2024 19:45:26 +0100 Subject: [PATCH] useless cast --- src/Plateau.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Plateau.cpp b/src/Plateau.cpp index 539246c..c2b48cb 100644 --- a/src/Plateau.cpp +++ b/src/Plateau.cpp @@ -122,8 +122,7 @@ Plateau::trouveCoordonnees(const int x, const int y) const { const float tailleCelluleX = static_cast(Ecran::largeur()) / taille; const float tailleCelluleY = static_cast(Ecran::hauteur()) / taille; - return std::make_pair(static_cast(x / tailleCelluleX), - static_cast(y / tailleCelluleY)); + return std::make_pair(x / tailleCelluleX, y / tailleCelluleY); } int Plateau::getTaille() const {