Skip to content

Commit 7dd30c3

Browse files
committed
up
1 parent 9b59d92 commit 7dd30c3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

kbe/src/server/cellapp/cellapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@ void Cellapp::reqTeleportOtherCB(Mercury::Channel* pChannel, MemoryStream& s)
15981598
// 传送成功, 我们销毁这个entity。
15991599
if(success)
16001600
{
1601-
//destroyEntity(teleportEntityID, false);
1601+
destroyEntity(teleportEntityID, false);
16021602
return;
16031603
}
16041604

kbe/src/server/cellapp/entity.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2794,6 +2794,12 @@ void Entity::changeToGhost(COMPONENT_ID realCell, KBEngine::MemoryStream& s)
27942794

27952795
realCell_ = realCell;
27962796
ghostCell_ = 0;
2797+
2798+
GhostManager* gm = Cellapp::getSingleton().pGhostManager();
2799+
if(gm)
2800+
{
2801+
gm->addRoute(getID(), realCell_);
2802+
}
27972803

27982804
DEBUG_MSG(boost::format("%1%::changeToGhost(): %2%, realCell=%3%.\n") %
27992805
getScriptName() % getID() % realCell);

0 commit comments

Comments
 (0)