From: Daniel Karbach Date: Thu, 22 Oct 2015 09:28:21 +0000 (+0200) Subject: fix client's player entity ID X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=8de9eb53c9ae92c6bfa8f01cf6659b683fe2155d;p=blank.git fix client's player entity ID you shall not flicker --- diff --git a/src/client/client.cpp b/src/client/client.cpp index 773c0be..9e4ba50 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -51,7 +51,7 @@ InteractiveState::InteractiveState(MasterState &master, uint32_t player_id) , sounds() , save(master.GetEnv().config.GetWorldPath(master.GetWorldConf().name, master.GetConfig().net.host)) , world(res.block_types, master.GetWorldConf()) -, player(*world.AddPlayer(master.GetConfig().player.name)) +, player(*world.AddPlayer(master.GetConfig().player.name, player_id)) , hud(master.GetEnv(), master.GetConfig(), player) , manip(master.GetEnv().audio, sounds, player.GetEntity()) , input(world, player, master.GetClient())