Dropping a previously wielded entity will unwield the current one

Bug #1030487 reported by Erik Ogenvik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cyphesis
Fix Committed
Undecided
Erik Ogenvik

Bug Description

If the user has previously wielded an entity (but is now wielding another) and the first one is dropped, the right_hand_wield attribute will be reset.

The reason for this can be found in Character.cpp. Any entity which has at one time been wielded will have it's "containered" event connected to Character::wieldDropped. Since this connected never is severed this also means that if the entity is later on picked up by another entity, the same thing will happen.

Now, there used to be m_rightHandWieldConnection field, which would have handled this. But since that has been removed (commented out) I assume there's a reason. Should this be handled in a better way with more recent features? There's also a FIXME comment:
//FIXME Make sure we don't stay linked to the previous wielded tool

Revision history for this message
Al Riddoch (alriddoch) wrote :

Not actually confirmed myself yet, but I can completely see why this would happen.

Changed in cyphesis:
status: New → Confirmed
Al Riddoch (alriddoch)
Changed in cyphesis:
assignee: nobody → Al Riddoch (alriddoch)
Changed in cyphesis:
assignee: Al Riddoch (alriddoch) → Erik Ogenvik (erik-ogenvik)
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.