From b3c4c6d86dca994e7f92d521bd1bc434502bc8ac Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Tue, 28 Mar 2006 04:36:49 +0000 Subject: [PATCH] remove assert. It's a little risky without more testing --- stepmania/src/RageUtil.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/stepmania/src/RageUtil.h b/stepmania/src/RageUtil.h index 1da17f4837..58766175fe 100644 --- a/stepmania/src/RageUtil.h +++ b/stepmania/src/RageUtil.h @@ -41,21 +41,18 @@ inline U lerp( T x, U l, U h ) inline bool CLAMP( int &x, int l, int h ) { - ASSERT( l <= h ); if (x > h) { x = h; return true; } else if (x < l) { x = l; return true; } return false; } inline bool CLAMP( unsigned &x, unsigned l, unsigned h ) { - ASSERT( l <= h ); if (x > h) { x = h; return true; } else if (x < l) { x = l; return true; } return false; } inline bool CLAMP( float &x, float l, float h ) { - ASSERT( l <= h ); if (x > h) { x = h; return true; } else if (x < l) { x = l; return true; } return false;