[FIXED] Bug with Boats again, commands don't work after moving.
-
Grimson
- Developer
- Posts: 802
- Joined: Sat Jun 04, 2005 1:52 am
- Location: Germany
- Has thanked: 0
- Been thanked: 0
Bug with Boats again, commands don't work after moving.
There is again a bug with boats. It seems UOX3 doesn't recognize that you are on the boat after you moved on it, and so it doesn't respond to the commands anymore.
-
Grimson
- Developer
- Posts: 802
- Joined: Sat Jun 04, 2005 1:52 am
- Location: Germany
- Has thanked: 0
- Been thanked: 0
It's related to those lines in the inMulti() function:
If I commet the check for the Z coordinate out it works again.
Code: Select all
if( multi->visible && ( m->GetX() + multi->x == x ) && ( m->GetY() + multi->y == y ) )
{
const SI08 multiZ = (m->GetZ() + multi->z);
if( multiZ >= z-1 && multiZ <= z+1 )
return true;
}