useless cast
This commit is contained in:
parent
3582844e5c
commit
d4e43b6abd
1 changed files with 1 additions and 2 deletions
|
@ -122,8 +122,7 @@ Plateau::trouveCoordonnees(const int x, const int y) const {
|
||||||
const float tailleCelluleX = static_cast<float>(Ecran::largeur()) / taille;
|
const float tailleCelluleX = static_cast<float>(Ecran::largeur()) / taille;
|
||||||
const float tailleCelluleY = static_cast<float>(Ecran::hauteur()) / taille;
|
const float tailleCelluleY = static_cast<float>(Ecran::hauteur()) / taille;
|
||||||
|
|
||||||
return std::make_pair(static_cast<int>(x / tailleCelluleX),
|
return std::make_pair(x / tailleCelluleX, y / tailleCelluleY);
|
||||||
static_cast<int>(y / tailleCelluleY));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int Plateau::getTaille() const {
|
int Plateau::getTaille() const {
|
||||||
|
|
Reference in a new issue