@@ -726,6 +726,9 @@ void ClientObjectBase::onEntityEnterWorld(Mercury::Channel * pChannel, MemoryStr
726
726
this ->onUpdatePropertys (pChannel, *iter->second .get ());
727
727
bufferedCreateEntityMessage_.erase (iter);
728
728
entity->isOnGound (isOnGound > 0 );
729
+
730
+ DEBUG_MSG (boost::format (" ClientObjectBase::onEntityEnterWorld: %1%(%2%), isOnGound(%3%).\n " ) %
731
+ entity->getScriptName () % eid % (int )isOnGound);
729
732
}
730
733
else
731
734
{
@@ -742,18 +745,19 @@ void ClientObjectBase::onEntityEnterWorld(Mercury::Channel * pChannel, MemoryStr
742
745
// 初始化一下服务端当前的位置
743
746
entity->setServerPosition (entity->getPosition ());
744
747
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
+
747
754
// 设置entity的cellMailbox
748
755
EntityMailbox* mailbox = new EntityMailbox (entity->getScriptModule (),
749
756
NULL , appID (), eid, MAILBOX_TYPE_CELL);
750
757
751
758
entity->setCellMailbox (mailbox);
752
759
}
753
760
754
- DEBUG_MSG (boost::format (" ClientObjectBase::onEntityEnterWorld: %1%(%2%), isOnGound(%3%).\n " ) %
755
- entity->getScriptName () % eid % (int )isOnGound);
756
-
757
761
EventData_EnterWorld eventdata;
758
762
eventdata.spaceID = spaceID_;
759
763
eventdata.entityID = entity->getID ();
0 commit comments