This commit is contained in:
aozhiwei 2023-05-10 15:43:58 +08:00
parent 0720e7e8d1
commit f5b8fc8071
2 changed files with 10 additions and 7 deletions

View File

@ -293,4 +293,7 @@ void Player::_CMExecCommand(f8::MsgHdr& hdr, const cs::CMExecCommand& msg)
skill->Accelerate(-10000000);
}
}
#ifdef DEBUG
a8::XPrintf("exec_cmd:%s\n", {cmd});
#endif
}

View File

@ -392,9 +392,10 @@ void RoomObstacle::DetachFromMaster()
{
if (!detached_) {
detached_ = true;
if (master.Get()) {
xtimer_attacher.ClearTimerList();
if (master.Get()) {
master.Get()->SlaveOnRemove(this);
}
room->grid_service->DelRoomEntity(room, this);
if (!IsDead(room)) {
Die(room);
@ -402,7 +403,6 @@ void RoomObstacle::DetachFromMaster()
}
room->RemoveObjectLater(this);
}
}
if (!list_empty(&entry)) {
list_del_init(&entry);
}