diff options
author | kwolekr <mirrorisim@gmail.com> | 2012-11-25 21:16:48 -0500 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2013-01-21 21:41:33 +0200 |
commit | 11afcbff69c95915e5142bc4b55636ff6358ece9 (patch) | |
tree | 1e6a3242e83443b665d9b781c84abad4e662f83d /src/util | |
parent | 736b386554a6b385a34f40c0411c6e466ebec30a (diff) | |
download | minetest-11afcbff69c95915e5142bc4b55636ff6358ece9.tar.gz minetest-11afcbff69c95915e5142bc4b55636ff6358ece9.tar.bz2 minetest-11afcbff69c95915e5142bc4b55636ff6358ece9.zip |
The new mapgen, noise functions, et al.
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/numeric.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/numeric.h b/src/util/numeric.h index 5ed4d0e99..a028f1ff2 100644 --- a/src/util/numeric.h +++ b/src/util/numeric.h @@ -120,6 +120,7 @@ inline s16 rangelim(s16 i, s16 max) } #define rangelim(d, min, max) ((d) < (min) ? (min) : ((d)>(max)?(max):(d))) +#define myfloor(x) ((x) > 0.0 ? (int)(x) : (int)(x) - 1) inline v3s16 arealim(v3s16 p, s16 d) { |