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
|
#ifdef _DEBUG
|
||||||
std::cout << "Loading map... Version: " MAP_VERSION_STRING << std::endl;
|
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
|
#endif
|
||||||
|
|
||||||
auto err = map.load(ASSETS_PATH "/test.cymf");
|
auto [message, code] = map.load(ASSETS_PATH "/test.cymf");
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
auto end = std::chrono::system_clock::now();
|
const auto end = std::chrono::system_clock::now();
|
||||||
auto milliseconds = std::chrono::duration_cast<std::chrono::microseconds>(end - start);
|
const auto milliseconds = std::chrono::duration_cast<std::chrono::microseconds>(end - start);
|
||||||
std::cout << "Loading took: " << milliseconds << std::endl;
|
std::cout << "Loading took: " << milliseconds << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
map.setPosition(sf::Vector2f{20, 20});
|
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;
|
return;
|
||||||
}
|
}
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
|
|
Loading…
Reference in a new issue