summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-13 12:45:02 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-13 12:45:02 +0200
commit9226def3f107bb768034029f6108d2b657182acc (patch)
tree70716dce6a6f52a6223d10ffa77e2f2fbdc0f622 /src/game
parentcf7c38f58f350350580241fae7f5543e44b5d1ad (diff)
Change biomes so it's more interesting.
Diffstat (limited to 'src/game')
-rw-r--r--src/game/worldgen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/worldgen.cpp b/src/game/worldgen.cpp
index 61ceea3..44464f2 100644
--- a/src/game/worldgen.cpp
+++ b/src/game/worldgen.cpp
@@ -129,9 +129,9 @@ void worldgen(world_t *world, sector_index_t index, sector_t *sector,
waterlevel = world->perlin.get(x, 1000.0f) * 0.3f +
world->perlin.get(x, 500.0f) * 0.1f;
- biome = world->perlin.get(x - v2f_t(60, 20), 160.0f) * 0.4f +
+ biome = world->perlin.get(-x + v2f_t(-60, 120), 160.0f) * 0.4f +
world->perlin.get(x, 30.0f) * 0.2f +
- world->perlin.get(x, 5.0f) * 0.03f;
+ world->perlin.get(x, 8.0f) * 0.03f;
height = world->perlin.get(x, 40.0f) * 0.6f +