View Single Post
  #1  
Old 12-02-2003, 04:51 AM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default MOBs and Minor typo

In mob.cpp Mob::CalculateDistance it reads:

Code:
    return (float)sqrt( ((x_pos-x)*(x_pos-x)) + ((y_pos-x)*(y_pos-x)) + ((z_pos-z)*(z_pos-z)) );
and should be... (notice the y calc)

Code:
    return (float)sqrt( ((x_pos-x)*(x_pos-x)) + ((y_pos-y)*(y_pos-y)) + ((z_pos-z)*(z_pos-z)) );
Among other things it might explain the vanishing mobs.
__________________
Maybe I should try making one of these servers...
Reply With Quote