mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Fix "integer constant is too large for 'long' type" error
This commit is contained in:
@@ -1552,7 +1552,7 @@ void make_block(BlockMakeData *data)
|
|||||||
/*
|
/*
|
||||||
Create a block-specific seed
|
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;
|
+ full_node_min.Y*42123 + full_node_min.X*23;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user