refactor(Core/Misc): remove the ternary operator when used improperly (#3327)
This commit is contained in:
parent
207512a0f5
commit
51330f54d8
19 changed files with 67 additions and 67 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue