diff options
author | megamage <none@none> | 2009-04-04 15:12:36 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-04-04 15:12:36 -0600 |
commit | f744c0907514a48425df8c96bffaadbe54ac3e79 (patch) | |
tree | c5b3e53bd84f86d4b2e91170c7697b91ed50d35f /src/game/InstanceData.cpp | |
parent | 6e00dd978970bbad082102fef34fe71f02a63a52 (diff) | |
parent | 86bd3bfb422a299d6e0aac0f196ba4fea9affbc4 (diff) |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/InstanceData.cpp')
-rw-r--r-- | src/game/InstanceData.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/InstanceData.cpp b/src/game/InstanceData.cpp index 473d8433395..bd8f510e594 100644 --- a/src/game/InstanceData.cpp +++ b/src/game/InstanceData.cpp @@ -30,3 +30,13 @@ void InstanceData::SaveToDB() CharacterDatabase.PExecute("UPDATE instance SET data = '%s' WHERE id = '%d'", data.c_str(), instance->GetInstanceId()); } +void InstanceData::HandleGameObject(uint64 GUID, bool open, GameObject *go) +{ + if(!go) + go = instance->GetGameObjectInMap(GUID); + if(go) + go->SetGoState(open ? 0 : 1); + else + debug_log("SD2: InstanceData: HandleGameObject failed"); +} + |