aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@amdmi3.ru>2011-08-02 02:49:15 +0400
committerDmitry Marakasov <amdmi3@amdmi3.ru>2011-08-02 02:49:15 +0400
commitde868d24c170dc8f92ea1280bac80f0ab528d3e0 (patch)
tree4a82f3677240591cf0be1a92a36df843653b7402 /src
parent318a730c459a8524d7030d261946c35815dd4b29 (diff)
downloadminetest-de868d24c170dc8f92ea1280bac80f0ab528d3e0.tar.gz
minetest-de868d24c170dc8f92ea1280bac80f0ab528d3e0.tar.bz2
minetest-de868d24c170dc8f92ea1280bac80f0ab528d3e0.zip
Fix "integer constant is too large for 'long' type" error
Diffstat (limited to 'src')
-rw-r--r--src/mapgen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp
index 5dec7d843..9effa8ac6 100644
--- a/src/mapgen.cpp
+++ b/src/mapgen.cpp
@@ -1552,7 +1552,7 @@ void make_block(BlockMakeData *data)
/*
Create a block-specific seed
*/
- u32 blockseed = (u32)(data->seed%0x100000000) + full_node_min.Z*38134234
+ u32 blockseed = (u32)(data->seed%0x100000000ULL) + full_node_min.Z*38134234
+ full_node_min.Y*42123 + full_node_min.X*23;
/*