X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2Fui.cpp;h=2ec4d883d3e6f963dc047e85694a5bfb9bcec00d;hb=43820582217f7e4b707d98f2e69d969eb77fc7c3;hp=d8459e5190419f1c27e8f069d0da6efdae388d01;hpb=dbfcb12348b80e2582f710acb1e4ed0011889ba2;p=blank.git diff --git a/src/ui/ui.cpp b/src/ui/ui.cpp index d8459e5..2ec4d88 100644 --- a/src/ui/ui.cpp +++ b/src/ui/ui.cpp @@ -102,11 +102,12 @@ void HUD::Render(Viewport &viewport) noexcept { Interface::Interface( const Config &config, Environment &env, - World &world) + World &world, + Entity &player) : env(env) , world(world) // let's assume this succeeds and hope for the best for now -, ctrl(*world.AddPlayer(config.player_name)) +, ctrl(player) , hud(world.BlockTypes(), env.assets.small_ui_font) , aim{{ 0, 0, 0 }, { 0, 0, -1 }} , aim_world()