Mercurial > mm7
diff Math.h @ 1214:0d6c7ff3cddd
simplified stru193_math constructor and class definition
GAME_STATE_3 to GAME_STATE_LOADING_GAME
author | Grumpy7 |
---|---|
date | Sun, 09 Jun 2013 16:06:12 +0200 |
parents | 71ba92960bc5 |
children | 0aeac0b9ca30 |
line wrap: on
line diff
--- a/Math.h Sun Jun 09 16:04:02 2013 +0200 +++ b/Math.h Sun Jun 09 16:06:12 2013 +0200 @@ -16,12 +16,12 @@ int pTanTable[520]; int pCosTable[520]; int pInvCosTable[520]; - unsigned int uIntegerPi; - unsigned int uIntegerHalfPi; - unsigned int uIntegerDoublePi; - unsigned int uDoublePiMask; - unsigned int uPiMask; - unsigned int uHalfPiMask; + static const unsigned int uIntegerPi = 1024; + static const unsigned int uIntegerHalfPi = 512; + static const unsigned int uIntegerDoublePi = 2048; + static const unsigned int uDoublePiMask = 2047; + static const unsigned int uPiMask = 1023; + static const unsigned int uHalfPiMask = 511; }; #pragma pack(pop)