Core/Units: Rename and change Get/SetVisibility to use a bool value instead of an unnecessary enum

Also replace some SetVisibility hacks to directly call UpdateObjectVisibility

--HG--
branch : trunk
This commit is contained in:
linencloth
2010-11-16 01:13:04 +01:00
parent 57c76407b0
commit 8fae0c176d
70 changed files with 181 additions and 187 deletions
@@ -318,7 +318,7 @@ public:
break;
case 4:
CanWalk = true;
me->SetVisibility(VISIBILITY_OFF);
me->SetVisible(false);
SummonRingMob();
Event_Timer = 8000;
break;
@@ -332,7 +332,7 @@ public:
Event_Timer = 0;
break;
case 7:
me->SetVisibility(VISIBILITY_ON);
me->SetVisible(true);
HandleGameObject(DATA_ARENA1, false);
DoScriptText(SCRIPT_TEXT6, me);//4
CanWalk = true;
@@ -343,7 +343,7 @@ public:
Event_Timer = 5000;
break;
case 9:
me->SetVisibility(VISIBILITY_OFF);
me->SetVisible(false);
SummonRingBoss();
Event_Timer = 0;
break;