--- yoda/techmodel/forroutines/anticounter/ACphysics.h 2004/07/08 12:48:23 1.1 +++ yoda/techmodel/forroutines/anticounter/ACphysics.h 2004/10/17 12:28:41 2.1 @@ -1,5 +1,5 @@ -struct datastruct{ +struct datastruct{ unsigned short header[2]; unsigned short status; unsigned short hitmap; @@ -15,13 +15,24 @@ }; //physics structure -struct datastruct physicsdata; +datastruct physicsdata; //pointer to struct -struct datastruct *physicspointer; +datastruct *physicspointer; //read variables int i,err,found; -unsigned short buffer[100]; +unsigned short buffer[1000]; unsigned short tmp1,tmp2; +int flip(int i16) +{ + int temp; + + temp = 0; + temp |= 0xFF00 & ((0x00FF & i16) << 8); + temp |= 0x00FF & ((0xFF00 & i16) >> 8); + return temp; +} + +