Don't save guest players to the players.xml file.

This commit is contained in:
hiker 2014-05-31 10:25:08 +10:00
parent 6643f749b1
commit a0ee4d0bc5

View File

@ -272,10 +272,12 @@ void PlayerManager::save()
<< m_current_player->getName() << L"\"/>\n";
}
// Save all non-guest players
PlayerProfile *player;
for_in(player, m_all_players)
{
player->save(players_file);
if(!player->isGuestAccount())
player->save(players_file);
}
players_file << L"</players>\n";
players_file.close();