]> git.localhorst.tv Git - blank.git/blobdiff - src/ai/Spawner.cpp
fix error in make_dirs and add is_file
[blank.git] / src / ai / Spawner.cpp
index c73bcde9a9584c2cf2c9500d8fc427653d17be11..b0b9bcb5127575cc0b254105ec669ed80216d274 100644 (file)
@@ -105,13 +105,13 @@ void Spawner::Spawn(const glm::ivec3 &chunk, const glm::vec3 &pos) {
        e.Position(chunk, pos);
        e.Bounds({ { -0.5f, -0.5f, -0.5f }, { 0.5f, 0.5f, 0.5f } });
        e.WorldCollidable(true);
-       e.SetShape(world.BlockTypes()[1].shape, color);
+       e.SetShape(world.BlockTypes()[1].shape, color, 2);
        e.AngularVelocity(rot);
        Controller *ctrl;
        if (rand() % 2) {
                ctrl = new RandomWalk(e);
        } else {
-               ctrl = new Chaser(e, world.Player());
+               ctrl = new Chaser(world, e, world.Player());
        }
        controllers.emplace_back(ctrl);
 }