From 05acf2fdf29df7db4f7986763e97e3a5b7b60184 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sun, 22 Apr 2018 18:56:15 +0200 Subject: Change the world a bit. --- src/game/game.cpp | 3 ++- src/game/worldgen.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/game') diff --git a/src/game/game.cpp b/src/game/game.cpp index 986b5d2..a19eecc 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -84,7 +84,8 @@ void state_t::start(void) world.generator_data = (void*)this; repl = new unit_repl_t(this); - repl->place(&world, v2f_t(1.3, -0.6)); + repl->place(&world, v2f_t(5.3, 4.2)); + select_unit(repl, SELECT_NEW); resume(); } diff --git a/src/game/worldgen.cpp b/src/game/worldgen.cpp index 7af6315..de47988 100644 --- a/src/game/worldgen.cpp +++ b/src/game/worldgen.cpp @@ -149,9 +149,9 @@ void worldgen(world_t *world, sector_index_t index, sector_t *sector, if (biome < 0.0f) { if (height < waterlevel) tile->type = TILE_WATER; - else if (height < waterlevel + 0.1) + else if (height < waterlevel + 0.12) tile->type = TILE_DIRT; - else if (world->perlin.get(x, 3.0f) > 0.0f) + else if (world->perlin.get(x, 4.0f) > 0.0f) tile->type = TILE_STONE; else tile->type = TILE_DIRT; -- cgit