Update engine.cpp

This commit is contained in:
MarcEricMartel 2023-12-09 16:25:24 -05:00
parent 46298f8256
commit c176fddea1

View File

@ -46,8 +46,6 @@ void Engine::Init() {
m_world.GetChunks().Reset(nullptr); m_world.GetChunks().Reset(nullptr);
m_world.SetSeed(SEED); m_world.SetSeed(SEED);
m_startTime = std::chrono::high_resolution_clock::now();
} }
void Engine::DeInit() {} void Engine::DeInit() {}
@ -1238,6 +1236,7 @@ void Engine::Render(float elapsedTime) {
if (StartMultiplayerGame()) { if (StartMultiplayerGame()) {
std::cout << "Starting multiplayer game reached" << std::endl; std::cout << "Starting multiplayer game reached" << std::endl;
m_gamestate = GameState::PLAY; m_gamestate = GameState::PLAY;
m_startTime = std::chrono::high_resolution_clock::now();
} }
else { else {
std::cout << "Cannot reach server." << std::endl; std::cout << "Cannot reach server." << std::endl;