diff --git a/include/Map.hpp b/include/Map.hpp index 07b3faee..17a7a13f 100644 --- a/include/Map.hpp +++ b/include/Map.hpp @@ -49,7 +49,7 @@ class MapClass: public Core::Drawable{ return glm::vec2(global[0], global[1]); } - static glm::vec2 GlobaleCoordToCellCoord(glm::vec2 globalCoord){ + static glm::vec2 GlobalCoordToCellCoord(glm::vec2 globalCoord){ float cellHeight=48.F; float cellWidth=48.F; return glm::vec2(int(globalCoord[0]/cellHeight),int(globalCoord[1]/cellWidth)); diff --git a/src/UI.cpp b/src/UI.cpp index 066d23d5..f937f64e 100644 --- a/src/UI.cpp +++ b/src/UI.cpp @@ -62,7 +62,7 @@ void UIClass::ShowPlayerConstructionMenu() { std::string("X: " + std::to_string( CursorGlobalPosition.x) + " Y: " + std::to_string(CursorGlobalPosition.y)) .c_str()); - auto cellLocation=MapClass::GlobaleCoordToCellCoord(CursorGlobalPosition); + auto cellLocation=MapClass::GlobalCoordToCellCoord(CursorGlobalPosition); ImGui::Text( std::string("Cell X: " + std::to_string( int(cellLocation.x)) + " Cell Y: " + std::to_string(int(cellLocation.y)))