Files
oboe/Win32/Blades of Exile/tools/mathutil.h
Chokboyz 5ebbe14d6f *Finished cleaning the Win32 code so that the game compiles again.
*Fixed the SDF[0][0] being set to 1 when killing wandering or summoned monsters.

Chokboyz

git-svn-id: http://openexile.googlecode.com/svn/trunk@132 4ebdad44-0ea0-11de-aab3-ff745001d230
2009-10-18 23:26:28 +00:00

28 lines
454 B
C++

/*
* mathutil.h
* BoE
*
* Created by Celtic Minstrel on 16/04/09.
*
*/
#include <cmath>
using std::abs;
#ifdef max
#undef max
#endif
#ifdef min
#undef min
#endif
extern short get_ran (short times,short min,short max);
extern short s_pow(short x,short y);
short s_sqrt(short val);
short max(short a,short b);
short min(short a,short b);
short minmax(short min,short max,short k);
short move_to_zero(short val);
short gcd(short a, short b);