1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

mapgen stuff

This commit is contained in:
Perttu Ahola
2011-06-25 16:32:09 +03:00
parent e8a731adc5
commit aed9e809a1
7 changed files with 393 additions and 197 deletions

View File

@@ -1741,6 +1741,11 @@ void mysrand(unsigned seed);
inline int myrand_range(int min, int max)
{
if(max-min > MYRAND_MAX)
{
dstream<<"WARNING: myrand_range: max-min > MYRAND_MAX"<<std::endl;
assert(0);
}
if(min > max)
{
assert(0);