Commit e4315187 by Anselme

fixed player list not reseting when getting disconnected

parent 37dcded7
......@@ -182,6 +182,9 @@ void Graphics::initMenu(Menu* menu)
{
m_zoomLevel = 4;
initCrates(menu->getMap()->getCrates());
for(auto pe : m_players)
delete pe.second;
m_players.clear();
}
void Graphics::renderMenu(sf::RenderWindow &window, Menu* menu)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment