From 54deb92306a3de4fc1ee17fb7081a8b92f16ddda Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Fri, 7 Aug 2015 15:19:55 +0200 Subject: [PATCH] speed up entity rotation a little because it's fun --- src/ai/Spawner.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ai/Spawner.cpp b/src/ai/Spawner.cpp index 863678d..c73bcde 100644 --- a/src/ai/Spawner.cpp +++ b/src/ai/Spawner.cpp @@ -96,9 +96,9 @@ void Spawner::Spawn(const glm::ivec3 &chunk, const glm::vec3 &pos) { color = color * 0.15f + 0.25f; glm::vec3 rot(0.000001f); - rot.x *= (rand() % 32); - rot.y *= (rand() % 32); - rot.z *= (rand() % 32); + rot.x *= (rand() % 1024); + rot.y *= (rand() % 1024); + rot.z *= (rand() % 1024); Entity &e = world.AddEntity(); e.Name("test"); -- 2.39.2