[FIXED] Bug with Boats again, commands don't work after moving.

Here we stuff all the bugs we've managed to squash/squish/squelch.
Locked
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.

Post by Grimson »

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.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Confirmed.
-= Ho Eyo He Hum =-
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

It's related to those lines in the inMulti() function:

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;
		}
If I commet the check for the Z coordinate out it works again.
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

I added a quick fix (not a final solution) for this to the CVS.
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

This issue should be fixed.
Scott
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

giwo wrote:This issue should be fixed.
Yes, works good now.
Locked