From de868d24c170dc8f92ea1280bac80f0ab528d3e0 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 2 Aug 2011 02:49:15 +0400 Subject: [PATCH] Fix "integer constant is too large for 'long' type" error --- src/mapgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapgen.cpp b/src/mapgen.cpp index 5dec7d84..9effa8ac 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; /* -- 2.30.2