From 130464c2688fc2c9cd39d16568c12f17c105cb89 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Fri, 21 Jun 2013 18:32:28 +0000 Subject: Print playername when failing to read playerfile and ignore files starting with . --- src/environment.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/environment.cpp') diff --git a/src/environment.cpp b/src/environment.cpp index 99da5190c..4b785998b 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -399,7 +399,7 @@ void ServerEnvironment::serializePlayers(const std::string &savedir) std::vector player_files = fs::GetDirListing(players_path); for(u32 i=0; ideSerialize(is); + player->deSerialize(is, player_files[i].name); } if(newplayer) -- cgit v1.2.3