Going negative in min/max?
Posted: Sat May 11, 2013 6:29 am
Why is this not possible? Does min and max not register numbers below 0?
Game Editor discussion board
http://game-editor.com/forum/
if(min(10, -10)==-10)
{
r=0;
}
x=rand(10);
x=min(max(x, 5), 10);
//or for the negative direction.
x=rand(-10);
x=min(max(x, -10), -5);