summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-22 18:56:15 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-22 18:56:15 +0200
commit05acf2fdf29df7db4f7986763e97e3a5b7b60184 (patch)
tree094bbfadd82a8806c8d5c9827c9ea3ca601cb7fa /src/game
parent30c721089df4235a09829557005b029f9f5a7df1 (diff)
Change the world a bit.
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game.cpp3
-rw-r--r--src/game/worldgen.cpp4
2 files changed, 4 insertions, 3 deletions
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;