mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[c12620] GO_FLAG_INTERACT_COND should not reset in instances
This commit is contained in:
parent
630546c9df
commit
af4cf28fa2
2 changed files with 4 additions and 4 deletions
|
|
@ -460,9 +460,9 @@ void GameObject::Update(uint32 update_diff, uint32 p_time)
|
||||||
// reset flags
|
// reset flags
|
||||||
if (GetMap()->Instanceable())
|
if (GetMap()->Instanceable())
|
||||||
{
|
{
|
||||||
// In Instances GO_FLAG_LOCKED or GO_FLAG_NO_INTERACT are not changed
|
// In Instances GO_FLAG_LOCKED, GO_FLAG_INTERACT_COND or GO_FLAG_NO_INTERACT are not changed
|
||||||
uint32 currentLockOrInteractFlags = GetUInt32Value(GAMEOBJECT_FLAGS) & (GO_FLAG_LOCKED | GO_FLAG_NO_INTERACT);
|
uint32 currentLockOrInteractFlags = GetUInt32Value(GAMEOBJECT_FLAGS) & (GO_FLAG_LOCKED | GO_FLAG_INTERACT_COND | GO_FLAG_NO_INTERACT);
|
||||||
SetUInt32Value(GAMEOBJECT_FLAGS, GetGOInfo()->flags & ~(GO_FLAG_LOCKED | GO_FLAG_NO_INTERACT) | currentLockOrInteractFlags);
|
SetUInt32Value(GAMEOBJECT_FLAGS, GetGOInfo()->flags & ~(GO_FLAG_LOCKED | GO_FLAG_INTERACT_COND | GO_FLAG_NO_INTERACT) | currentLockOrInteractFlags);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
SetUInt32Value(GAMEOBJECT_FLAGS, GetGOInfo()->flags);
|
SetUInt32Value(GAMEOBJECT_FLAGS, GetGOInfo()->flags);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "12619"
|
#define REVISION_NR "12620"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue