nicky Report post Posted February 24, 2006 When ADD_NEW_ENHANCED_ACTOR is recieved, float scale could be based on 2 different results, differing by starting byte location. What is CUSTOM_LOOK and UID based on? And if you know, what is scale? #if defined CUSTOM_LOOK && defined UID uniq_id = SDL_SwapLE32(*((Uint32*)(in_data+28))); if(len > 32+strlen(in_data+32)+2){ scale=((float)SDL_SwapLE16(*((short *)(in_data+32+strlen(in_data+32)+1)))/((float)0x4000)); } #else if(len > 28+strlen(in_data+28)+2){ scale=((float)SDL_SwapLE16(*((short *)(in_data+28+strlen(in_data+28)+1)))/((float)0x4000)); } #endif Share this post Link to post Share on other sites
Learner Report post Posted February 24, 2006 When ADD_NEW_ENHANCED_ACTOR is recieved, float scale could be based on 2 different results, differing by starting byte location. What is CUSTOM_LOOK and UID based on? And if you know, what is scale? #if defined CUSTOM_LOOK && defined UID uniq_id = SDL_SwapLE32(*((Uint32*)(in_data+28))); if(len > 32+strlen(in_data+32)+2){ scale=((float)SDL_SwapLE16(*((short *)(in_data+32+strlen(in_data+32)+1)))/((float)0x4000)); } #else if(len > 28+strlen(in_data+28)+2){ scale=((float)SDL_SwapLE16(*((short *)(in_data+28+strlen(in_data+28)+1)))/((float)0x4000)); } #endif The uniq_id from CUSTOM_LOOK isn't used yet, scale will be used in the near future after one or two server upgrades. The first evidence of it being used will be noticable with the ants, and other things will be added as Entropy expands it's usage. Those of you that can read and follow what the code is doing, please dont post the effects yet. Share this post Link to post Share on other sites
Nidan Report post Posted February 27, 2006 Those of you that can read and follow what the code is doing, please dont post the effects yet. Nice Share this post Link to post Share on other sites