Jump to content
Eternal Lands Official Forums
Sign in to follow this  
nicky

New Question - What is this definition?

Recommended Posts

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×