projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
318a730
)
Fix "integer constant is too large for 'long' type" error
author
Dmitry Marakasov
<amdmi3@amdmi3.ru>
Mon, 1 Aug 2011 22:49:15 +0000
(
02:49
+0400)
committer
Dmitry Marakasov
<amdmi3@amdmi3.ru>
Mon, 1 Aug 2011 22:49:15 +0000
(
02:49
+0400)
src/mapgen.cpp
patch
|
blob
|
history
diff --git
a/src/mapgen.cpp
b/src/mapgen.cpp
index 5dec7d843b4dc031c9c1048129f5f23058f79c86..9effa8ac66203eed0b98bc1008bb4efb816080dc 100644
(file)
--- 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%0x100000000
ULL
) + full_node_min.Z*38134234
+ full_node_min.Y*42123 + full_node_min.X*23;
/*