diff options
author | kwolekr <kwolekr@minetest.net> | 2016-06-04 01:35:37 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2016-06-04 01:51:44 -0400 |
commit | dfbdb5bcd7bc48efb21d585d5c22454a9d5f0f1e (patch) | |
tree | 20f2d5cbb64f1a6bf0ee2638f4396effb42d362b /src/cavegen.cpp | |
parent | 2060fd9cbe587d7e8ffe0cecdd67925f13a56c05 (diff) | |
download | minetest-dfbdb5bcd7bc48efb21d585d5c22454a9d5f0f1e.tar.gz minetest-dfbdb5bcd7bc48efb21d585d5c22454a9d5f0f1e.tar.bz2 minetest-dfbdb5bcd7bc48efb21d585d5c22454a9d5f0f1e.zip |
Change internal type for seeds to s32
This fixes value truncation (and therefore incompatibility) on platforms
with an LP32 data model, such as VAX or MS-DOS.
Diffstat (limited to 'src/cavegen.cpp')
-rw-r--r-- | src/cavegen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cavegen.cpp b/src/cavegen.cpp index 1c25ce711..dc7355fe0 100644 --- a/src/cavegen.cpp +++ b/src/cavegen.cpp @@ -35,7 +35,7 @@ static NoiseParams nparams_caveliquids(0, 1, v3f(150.0, 150.0, 150.0), 776, 3, 0 CavesNoiseIntersection::CavesNoiseIntersection( INodeDefManager *nodedef, BiomeManager *biomemgr, v3s16 chunksize, - NoiseParams *np_cave1, NoiseParams *np_cave2, int seed, float cave_width) + NoiseParams *np_cave1, NoiseParams *np_cave2, s32 seed, float cave_width) { assert(nodedef); assert(biomemgr); @@ -130,7 +130,7 @@ void CavesNoiseIntersection::generateCaves(MMVManip *vm, CavesRandomWalk::CavesRandomWalk( INodeDefManager *ndef, GenerateNotifier *gennotify, - int seed, + s32 seed, int water_level, content_t water_source, content_t lava_source) |