diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-02-01 16:17:55 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-02-01 16:17:55 +0200 |
commit | e92238edc831a34081790e71249f1459e997974c (patch) | |
tree | 5406e23bb8fd7895f7ac741ad49085a217b7b758 /src/utility.h | |
parent | 56320f7e8de3cf31cbaf11492528016c4446d8f4 (diff) | |
download | minetest-e92238edc831a34081790e71249f1459e997974c.tar.gz minetest-e92238edc831a34081790e71249f1459e997974c.tar.bz2 minetest-e92238edc831a34081790e71249f1459e997974c.zip |
This map generator is starting to look pretty good now... also, disabled loading player position from disk because map is regenerated always.
Diffstat (limited to 'src/utility.h')
-rw-r--r-- | src/utility.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/utility.h b/src/utility.h index 8839887f7..cc69099b4 100644 --- a/src/utility.h +++ b/src/utility.h @@ -1474,8 +1474,11 @@ void mysrand(unsigned seed); inline int myrand_range(int min, int max) { - if(min >= max) + if(min > max) + { + assert(0); return max; + } return (myrand()%(max-min+1))+min; } |