useless cast

This commit is contained in:
Mylloon 2024-01-06 19:45:26 +01:00
parent 3582844e5c
commit d4e43b6abd
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -122,8 +122,7 @@ Plateau::trouveCoordonnees(const int x, const int y) const {
const float tailleCelluleX = static_cast<float>(Ecran::largeur()) / taille;
const float tailleCelluleY = static_cast<float>(Ecran::hauteur()) / taille;
return std::make_pair(static_cast<int>(x / tailleCelluleX),
static_cast<int>(y / tailleCelluleY));
return std::make_pair(x / tailleCelluleX, y / tailleCelluleY);
}
int Plateau::getTaille() const {