Jump to content

[Patch] GameObjectTarget command modifications//optimisation


Recommended Posts

Posted

Hi,

What bug does the patch fix? What features does the patch add?

Optimisation of GameObjectTarget command by adding some conditions in SQL query.

Using a 500meters radius instead of just a all map search.

For which repository revision was the patch created?

Mangos - [11737]

Who has been writing this patch? Please include either forum user names or email addresses.

Me

Patch

V1 : Original patch

V2 : Fix typo

V3 : Fix crash ( How stupid I am -_- )

http://paste2.org/p/1522405

Cordially,

MacWarrior.

Posted

#define SIZE_OF_GRIDS            533.33333f

So you limit distance to < 1 grid

I understand reason but maybe need add new command with additional (first arg, because name mask must be last)

or just add arg to existed as more simple case... In any case have hardcoded value in query not nice...

×
×
  • 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