mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
removed unused code - fix Travis
This commit is contained in:
@@ -22,20 +22,11 @@ class instance_deadmines : public InstanceMapScript
|
|||||||
memset(&_encounters, 0, sizeof(_encounters));
|
memset(&_encounters, 0, sizeof(_encounters));
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64 GetData64(uint32 data) const override
|
|
||||||
{
|
|
||||||
switch (data)
|
|
||||||
{
|
|
||||||
GO_FACTORY_DOOR: return DATA_FACTORY_DOORGUID;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void OnGameObjectCreate(GameObject* gameobject)
|
void OnGameObjectCreate(GameObject* gameobject)
|
||||||
{
|
{
|
||||||
switch (gameobject->GetEntry())
|
switch (gameobject->GetEntry())
|
||||||
{
|
{
|
||||||
case GO_FACTORY_DOOR:
|
case GO_FACTORY_DOOR:
|
||||||
DATA_FACTORY_DOORGUID = gameobject->GetGUID();
|
|
||||||
if (_encounters[TYPE_RHAHK_ZOR] == DONE)
|
if (_encounters[TYPE_RHAHK_ZOR] == DONE)
|
||||||
gameobject->SetGoState(GO_STATE_ACTIVE);
|
gameobject->SetGoState(GO_STATE_ACTIVE);
|
||||||
break;
|
break;
|
||||||
@@ -88,7 +79,6 @@ class instance_deadmines : public InstanceMapScript
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
uint32 _encounters[MAX_ENCOUNTERS];
|
uint32 _encounters[MAX_ENCOUNTERS];
|
||||||
uint64 DATA_FACTORY_DOORGUID;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
InstanceScript* GetInstanceScript(InstanceMap* map) const
|
InstanceScript* GetInstanceScript(InstanceMap* map) const
|
||||||
|
|||||||
Reference in New Issue
Block a user