1
This commit is contained in:
parent
034c9cfc9e
commit
8ab361c92a
@ -9,8 +9,6 @@
|
|||||||
|
|
||||||
Android::Android():Human()
|
Android::Android():Human()
|
||||||
{
|
{
|
||||||
ai = new ZombieModeAI;
|
|
||||||
ai->owner = this;
|
|
||||||
#if 0
|
#if 0
|
||||||
++PerfMonitor::Instance()->entity_num[ET_Android];
|
++PerfMonitor::Instance()->entity_num[ET_Android];
|
||||||
#endif
|
#endif
|
||||||
@ -18,8 +16,9 @@ Android::Android():Human()
|
|||||||
|
|
||||||
Android::~Android()
|
Android::~Android()
|
||||||
{
|
{
|
||||||
delete ai;
|
if (ai) {
|
||||||
ai = nullptr;
|
A8_SAFE_DELETE(ai);
|
||||||
|
}
|
||||||
#if 0
|
#if 0
|
||||||
--PerfMonitor::Instance()->entity_num[ET_Android];
|
--PerfMonitor::Instance()->entity_num[ET_Android];
|
||||||
#endif
|
#endif
|
||||||
@ -27,6 +26,13 @@ Android::~Android()
|
|||||||
|
|
||||||
void Android::Initialize()
|
void Android::Initialize()
|
||||||
{
|
{
|
||||||
|
if (room->GetRoomMode() == kZombieMode) {
|
||||||
|
ai = new ZombieModeAI;
|
||||||
|
ai->owner = this;
|
||||||
|
} else {
|
||||||
|
ai = new AndroidNewAI;
|
||||||
|
ai->owner = this;
|
||||||
|
}
|
||||||
Human::Initialize();
|
Human::Initialize();
|
||||||
RandSkin();
|
RandSkin();
|
||||||
GiveEquip();
|
GiveEquip();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user