mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
refactor(Core/Misc): remove the ternary operator when used improperly (#3327)
This commit is contained in:
@@ -121,13 +121,13 @@ void InstanceScript::UpdateDoorState(GameObject* door)
|
||||
switch (info.type)
|
||||
{
|
||||
case DOOR_TYPE_ROOM:
|
||||
open &= (info.bossInfo->state != IN_PROGRESS) ? true : false;
|
||||
open &= (info.bossInfo->state != IN_PROGRESS);
|
||||
break;
|
||||
case DOOR_TYPE_PASSAGE:
|
||||
open &= (info.bossInfo->state == DONE) ? true : false;
|
||||
open &= (info.bossInfo->state == DONE);
|
||||
break;
|
||||
case DOOR_TYPE_SPAWN_HOLE:
|
||||
open &= (info.bossInfo->state == IN_PROGRESS) ? true : false;
|
||||
open &= (info.bossInfo->state == IN_PROGRESS);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user