adding more consts!!!
This commit is contained in:
parent
bb646ff009
commit
d93544b846
1 changed files with 6 additions and 6 deletions
12
src/Game.cpp
12
src/Game.cpp
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue