mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
*Fix build.
--HG-- branch : trunk
This commit is contained in:
@@ -57,9 +57,9 @@ void InstanceData::AddBossRoomDoor(uint32 id, GameObject *door)
|
||||
bossInfo->roomDoor.insert(door);
|
||||
// Room door is only closed when encounter is in progress
|
||||
if(bossInfo->state == IN_PROGRESS)
|
||||
door->SetGoState(1);
|
||||
door->SetGoState(GO_STATE_READY);
|
||||
else
|
||||
door->SetGoState(0);
|
||||
door->SetGoState(GO_STATE_ACTIVE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,9 +71,9 @@ void InstanceData::AddBossPassageDoor(uint32 id, GameObject *door)
|
||||
bossInfo->passageDoor.insert(door);
|
||||
// Passage door is only opened when boss is defeated
|
||||
if(bossInfo->state == DONE)
|
||||
door->SetGoState(0);
|
||||
door->SetGoState(GO_STATE_ACTIVE);
|
||||
else
|
||||
door->SetGoState(1);
|
||||
door->SetGoState(GO_STATE_READY);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,23 +105,23 @@ void InstanceData::SetBossState(uint32 id, EncounterState state)
|
||||
case NOT_STARTED:
|
||||
// Open all room doors, close all passage doors
|
||||
for(DoorSet::iterator i = bossInfo->roomDoor.begin(); i != bossInfo->roomDoor.end(); ++i)
|
||||
(*i)->SetGoState(0);
|
||||
(*i)->SetGoState(GO_STATE_ACTIVE);
|
||||
for(DoorSet::iterator i = bossInfo->passageDoor.begin(); i != bossInfo->passageDoor.end(); ++i)
|
||||
(*i)->SetGoState(1);
|
||||
(*i)->SetGoState(GO_STATE_READY);
|
||||
break;
|
||||
case IN_PROGRESS:
|
||||
// Close all doors
|
||||
for(DoorSet::iterator i = bossInfo->roomDoor.begin(); i != bossInfo->roomDoor.end(); ++i)
|
||||
(*i)->SetGoState(1);
|
||||
(*i)->SetGoState(GO_STATE_READY);
|
||||
for(DoorSet::iterator i = bossInfo->passageDoor.begin(); i != bossInfo->passageDoor.end(); ++i)
|
||||
(*i)->SetGoState(1);
|
||||
(*i)->SetGoState(GO_STATE_READY);
|
||||
break;
|
||||
case DONE:
|
||||
// Open all doors
|
||||
for(DoorSet::iterator i = bossInfo->roomDoor.begin(); i != bossInfo->roomDoor.end(); ++i)
|
||||
(*i)->SetGoState(0);
|
||||
(*i)->SetGoState(GO_STATE_ACTIVE);
|
||||
for(DoorSet::iterator i = bossInfo->passageDoor.begin(); i != bossInfo->passageDoor.end(); ++i)
|
||||
(*i)->SetGoState(0);
|
||||
(*i)->SetGoState(GO_STATE_ACTIVE);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user