comparison mm7_data.h @ 1119:aa706cde7fda

* dark spells working * found aoe apply buff function * round() moved * some global variable fixes * DecalBuilder::ApplyDecals_OutdoorFace() clean
author zipi
date Wed, 29 May 2013 22:51:00 +0100
parents 3395579f6c4d
children ed6a9efc6c90
comparison
equal deleted inserted replaced
1118:ca415f6bac1c 1119:aa706cde7fda
1380 unsigned int __fastcall sub_452442(unsigned __int16 a1, unsigned __int16 a2, int a3, int a4); 1380 unsigned int __fastcall sub_452442(unsigned __int16 a1, unsigned __int16 a2, int a3, int a4);
1381 int integer_sqrt(int val); 1381 int integer_sqrt(int val);
1382 int __fastcall MakeColorMaskFromBitDepth(int a1); 1382 int __fastcall MakeColorMaskFromBitDepth(int a1);
1383 void __fastcall fill_pixels_fast(unsigned int a1, unsigned __int16 *pPixels, unsigned int uNumPixels); 1383 void __fastcall fill_pixels_fast(unsigned int a1, unsigned __int16 *pPixels, unsigned int uNumPixels);
1384 int __fastcall GetDiceResult(unsigned int uNumDice, unsigned int uDiceSides); // idb 1384 int __fastcall GetDiceResult(unsigned int uNumDice, unsigned int uDiceSides); // idb
1385 inline int round(float x) { return (floor(x + 0.5)); }
1385 inline void __fastcall memset32(void *ptr, unsigned __int32 value, int count) 1386 inline void __fastcall memset32(void *ptr, unsigned __int32 value, int count)
1386 { 1387 {
1387 auto p = (unsigned __int32 *)ptr; 1388 auto p = (unsigned __int32 *)ptr;
1388 for ( int i=0; i < count; i++ ) 1389 for ( int i=0; i < count; i++ )
1389 *p++ = value; 1390 *p++ = value;