Skip to content

Commit a33bfad

Browse files
committed
up
1 parent 434bf76 commit a33bfad

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

kbe/src/lib/client_lib/clientobjectbase.cpp

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,9 @@ void ClientObjectBase::onEntityEnterWorld(Mercury::Channel * pChannel, MemoryStr
726726
this->onUpdatePropertys(pChannel, *iter->second.get());
727727
bufferedCreateEntityMessage_.erase(iter);
728728
entity->isOnGound(isOnGound > 0);
729+
730+
DEBUG_MSG(boost::format("ClientObjectBase::onEntityEnterWorld: %1%(%2%), isOnGound(%3%).\n") %
731+
entity->getScriptName() % eid % (int)isOnGound);
729732
}
730733
else
731734
{
@@ -742,18 +745,19 @@ void ClientObjectBase::onEntityEnterWorld(Mercury::Channel * pChannel, MemoryStr
742745
// 初始化一下服务端当前的位置
743746
entity->setServerPosition(entity->getPosition());
744747

745-
KBE_ASSERT(!entity->isEnterword() && entity->getCellMailbox() == NULL);
746-
748+
DEBUG_MSG(boost::format("ClientObjectBase::onEntityEnterWorld: %1%(%2%), isOnGound(%3%).\n") %
749+
entity->getScriptName() % eid % (int)isOnGound);
750+
751+
KBE_ASSERT(!entity->isEnterword());
752+
KBE_ASSERT(entity->getCellMailbox() == NULL);
753+
747754
// 设置entity的cellMailbox
748755
EntityMailbox* mailbox = new EntityMailbox(entity->getScriptModule(),
749756
NULL, appID(), eid, MAILBOX_TYPE_CELL);
750757

751758
entity->setCellMailbox(mailbox);
752759
}
753760

754-
DEBUG_MSG(boost::format("ClientObjectBase::onEntityEnterWorld: %1%(%2%), isOnGound(%3%).\n") %
755-
entity->getScriptName() % eid % (int)isOnGound);
756-
757761
EventData_EnterWorld eventdata;
758762
eventdata.spaceID = spaceID_;
759763
eventdata.entityID = entity->getID();

0 commit comments

Comments
 (0)