diff options
| author | click <none@none> | 2010-05-04 18:25:30 +0200 |
|---|---|---|
| committer | click <none@none> | 2010-05-04 18:25:30 +0200 |
| commit | 029e4804543c473f3b8cf98cfbecc91675dc4b78 (patch) | |
| tree | 5a4f006e4f75d6ba6738b4d868b52b33e30c8936 /src/game/Group.cpp | |
| parent | 51d0c07c90690925e03a8d5e75decc2e1410c57e (diff) | |
Add stricter regulations for instances (login-checks and support for sending unbound player to parent-instance / homebind if not matching criterias)
Patch by Elron103 - closes issue #1323.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Group.cpp')
| -rw-r--r-- | src/game/Group.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/game/Group.cpp b/src/game/Group.cpp index 1bc542ec08a..3b45c48cb26 100644 --- a/src/game/Group.cpp +++ b/src/game/Group.cpp @@ -1796,14 +1796,7 @@ void Group::UnbindInstance(uint32 mapid, uint8 difficulty, bool unload) void Group::_homebindIfInstance(Player *player) { if (player && !player->isGameMaster() && sMapStore.LookupEntry(player->GetMapId())->IsDungeon()) - { - // leaving the group in an instance, the homebind timer is started - // unless the player is permanently saved to the instance - InstanceSave *save = sInstanceSaveManager.GetInstanceSave(player->GetInstanceId()); - InstancePlayerBind *playerBind = save ? player->GetBoundInstance(save->GetMapId(), save->GetDifficulty()) : NULL; - if (!playerBind || !playerBind->perm) - player->m_InstanceValid = false; - } + player->m_InstanceValid = false; } void Group::BroadcastGroupUpdate(void) |
