Jump to content

Commit 7828 and 7829


Guest marcelomax

Recommended Posts

Somone can give me a short explain about this commit?

What they do?

http://github.com/mangos/mangos/commit/ebb003086a44764d1b14af34d7b89eb217b0292e

Thank you

they? o.O:D

This is optimization by speed chnages.

for example we need check distance less 5 to target.

GerDistance() < 5 is same (if drop details) as sqrt(x*x+y*y+z*z) < 5

IsWithin(..,5) is same as x*x+y*y+z*z < 5*5

Second version lot more faster in result avoid call sqrt function.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use