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