1
This commit is contained in:
parent
f05c26b73c
commit
b7fae74af6
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user