1
This commit is contained in:
parent
e64c2d5767
commit
9720478090
@ -763,6 +763,25 @@ void Room::UpdateGas()
|
|||||||
gas_data.gas_start_frameno = frame_no;
|
gas_data.gas_start_frameno = frame_no;
|
||||||
ShuaPlane();
|
ShuaPlane();
|
||||||
RoomMgr::Instance()->RemoveFromInactiveRoomHash(room_uuid);
|
RoomMgr::Instance()->RemoveFromInactiveRoomHash(room_uuid);
|
||||||
|
xtimer.AddDeadLineTimerAndAttach(SERVER_FRAME_RATE * 3,
|
||||||
|
a8::XParams()
|
||||||
|
.SetSender(this),
|
||||||
|
[] (const a8::XParams& param)
|
||||||
|
{
|
||||||
|
Room* room = (Room*)param.sender.GetUserData();
|
||||||
|
room->TouchHumanList(
|
||||||
|
a8::XParams()
|
||||||
|
.SetSender(room),
|
||||||
|
[] (Human* hum, a8::XParams& param) -> bool
|
||||||
|
{
|
||||||
|
if (a8::HasBitFlag(hum->status, HS_Fly)) {
|
||||||
|
hum->DoJump();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
&xtimer_attacher.timer_list_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user