adding more consts!!!

This commit is contained in:
noffie 2025-03-18 23:23:42 +01:00
parent bb646ff009
commit d93544b846

View file

@ -9,22 +9,22 @@ void Game::run()
{
#ifdef _DEBUG
std::cout << "Loading map... Version: " MAP_VERSION_STRING << std::endl;
auto start = std::chrono::system_clock::now();
const auto start = std::chrono::system_clock::now();
#endif
auto err = map.load(ASSETS_PATH "/test.cymf");
auto [message, code] = map.load(ASSETS_PATH "/test.cymf");
#ifdef _DEBUG
auto end = std::chrono::system_clock::now();
auto milliseconds = std::chrono::duration_cast<std::chrono::microseconds>(end - start);
const auto end = std::chrono::system_clock::now();
const auto milliseconds = std::chrono::duration_cast<std::chrono::microseconds>(end - start);
std::cout << "Loading took: " << milliseconds << std::endl;
#endif
map.setPosition(sf::Vector2f{20, 20});
if (err.code != 0)
if (code != 0)
{
std::cout << err.message << std::endl;
std::cout << message << std::endl;
return;
}
#ifdef _DEBUG