X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fai%2FSpawner.cpp;h=fabc6dd6a4377999751098b4719a4b12eb2a2fe2;hb=fae1305b5783ce7a59ab1d4f44e199bd2bda1f45;hp=94220d4af0f608b7b761cabf4c75c7cae608c0a7;hpb=150d065f431d665326fd8028748c48a74ad956bb;p=blank.git diff --git a/src/ai/Spawner.cpp b/src/ai/Spawner.cpp index 94220d4..fabc6dd 100644 --- a/src/ai/Spawner.cpp +++ b/src/ai/Spawner.cpp @@ -26,7 +26,7 @@ Spawner::Spawner(World &world, ModelRegistry &models, GaloisLFSR &rand) , timer(64) , despawn_range(128 * 128) , spawn_distance(16 * 16) -, max_entities(16) +, max_entities(32) , chunk_range(4) , model_offset(0) , model_length(models.size()) { @@ -127,7 +127,7 @@ void Spawner::Spawn(Entity &reference, const glm::ivec3 &chunk, const glm::vec3 e.Bounds({ { -0.5f, -0.5f, -0.5f }, { 0.5f, 0.5f, 0.5f } }); e.WorldCollidable(true); RandomModel().Instantiate(e.GetModel()); - e.SetController(new AIController(random)); + e.SetController(new AIController(world, random)); e.Name("spawned"); e.Ref(); entities.emplace_back(&e);