This commit is contained in:
aozhiwei 2022-09-29 13:05:10 +08:00
parent f05c26b73c
commit b7fae74af6

View File

@ -359,7 +359,6 @@ void RoomObstacle::Active()
break;
}
if (meta->i->life_time() > 0) {
#if 1
room->xtimer.AddDeadLineTimerAndAttach
(
meta->i->life_time() / FRAME_RATE_MS,
@ -369,14 +368,9 @@ void RoomObstacle::Active()
{
RoomObstacle* obstacle = (RoomObstacle*)param.sender.GetUserData();
obstacle->DetachFromMaster();
#ifdef DEBUG
obstacle->room->BroadcastDebugMsg
(a8::Format("obstacle destory %d", {obstacle->meta->i->thing_id()}));
#endif
},
&xtimer_attacher.timer_list_
);
#endif
}
}