1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-17 23:05:07 -05:00

Remove unused rangelim function (the macro still exists)

This commit is contained in:
Kahrl 2014-11-19 10:19:52 +01:00
parent da2ffebc41
commit 55e4c35eaf

View File

@ -111,15 +111,6 @@ inline bool isInArea(v3s16 p, v3s16 d)
);
}
inline s16 rangelim(s16 i, s16 max)
{
if(i < 0)
return 0;
if(i > max)
return max;
return i;
}
#define rangelim(d, min, max) ((d) < (min) ? (min) : ((d)>(max)?(max):(d)))
#define myfloor(x) ((x) > 0.0 ? (int)(x) : (int)(x) - 1)