diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-16 15:48:24 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-16 15:48:24 +0100 |
commit | b13dc31b08cddf14ecfa6b8cf496cf4e7308083c (patch) | |
tree | 8905b2d680c24d1f5c185479f0c94694a58e2122 /src/game/worldgen.cpp | |
parent | a62ac36a7e401b39d760237778623f5a2b13f91f (diff) |
Better tile textures.
Diffstat (limited to 'src/game/worldgen.cpp')
-rw-r--r-- | src/game/worldgen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/worldgen.cpp b/src/game/worldgen.cpp index 573d03b..62c8a5e 100644 --- a/src/game/worldgen.cpp +++ b/src/game/worldgen.cpp @@ -17,11 +17,11 @@ void worldgen(world::tile_t *tile, world::tile_index_t x, perlin->get(x, 1.0f) * 0.05f; if (height < waterlevel) - tile->type = TILE_WALL; + tile->type = TILE_WATER; else if (height < waterlevel + 0.1) tile->type = TILE_DIRT; else if (perlin->get(x, 3.0f) > 0.0f) - tile->type = TILE_WALL; + tile->type = TILE_STONE; else tile->type = TILE_DIRT; } |