]> git.localhorst.tv Git - blank.git/blobdiff - src/standalone/standalone.cpp
move steering behaviours into entity
[blank.git] / src / standalone / standalone.cpp
index ad6450d5b05bda8a42d419f5969e32c977256a05..3c3487cd13d2336bb4371bfde65889eec5649ede 100644 (file)
@@ -59,7 +59,7 @@ MasterState::MasterState(
 , generator(gc)
 , chunk_loader(world.Chunks(), generator, save)
 , chunk_renderer(player.GetChunks())
-, spawner(world, res.models, env.rng)
+, spawner(world, res.models)
 , sky(env.loader.LoadCubeMap("skybox"))
 , cli(world)
 , cli_ctx(player, hud)
@@ -164,7 +164,7 @@ void MasterState::Update(int dt) {
        if (input.BlockFocus()) {
                hud.FocusBlock(input.BlockFocus().GetChunk(), input.BlockFocus().block);
        } else if (input.EntityFocus()) {
-               hud.FocusEntity(*input.EntityFocus().entity);
+               hud.FocusEntity(input.EntityFocus().GetEntity());
        } else {
                hud.FocusNone();
        }