APXEOLOG / hnh_union

H&H Union [APXEOLOG & CarryGun]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pathfinder fails when cyrried object is impassable

GregorKopka opened this issue · comments

Having an object carried which would normally block the player (like a winepress) the pathfinder will fail (get stuck at first node), i guess this is caused because isPathFree() will always return false since it detects the gob of the carried item.

Solution could be to test if the position of the gob is the same as the players.

So something like

if (my == gob.position())
  continue;

inserted to the checks at

Drawable d = gob.getattr(Drawable.class);

could do the trick.

Nevermind, i found a workaround in case it is stuck.

Hm thx for reporting this bug. I'm not playing hnh any more and not developing this client, but this may be important for forks :)