]> git.localhorst.tv Git - blank.git/commitdiff
fix client's player entity ID
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 22 Oct 2015 09:28:21 +0000 (11:28 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 22 Oct 2015 09:28:21 +0000 (11:28 +0200)
you shall not flicker

src/client/client.cpp

index 773c0be595e06fd95f06aa410bf062c7d0d225f6..9e4ba501b141f3420b2b8eb957429da39e7be5be 100644 (file)
@@ -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())