1
This commit is contained in:
parent
854d97d497
commit
73e374da5b
@ -185,6 +185,8 @@ void KillMgr::BoradcastRollMsg(Human* dead_hum,
|
|||||||
int killer_team_id,
|
int killer_team_id,
|
||||||
std::shared_ptr<cs::SMRollMsg> pb_msg)
|
std::shared_ptr<cs::SMRollMsg> pb_msg)
|
||||||
{
|
{
|
||||||
|
KillInfo* info_copy = new KillInfo();
|
||||||
|
*info_copy = *info;
|
||||||
std::shared_ptr<cs::SMRollMsg>* pb_msg_copy = new std::shared_ptr<cs::SMRollMsg>;
|
std::shared_ptr<cs::SMRollMsg>* pb_msg_copy = new std::shared_ptr<cs::SMRollMsg>;
|
||||||
*pb_msg_copy = pb_msg;
|
*pb_msg_copy = pb_msg;
|
||||||
dead_hum->room->xtimer.AddDeadLineTimerAndAttach
|
dead_hum->room->xtimer.AddDeadLineTimerAndAttach
|
||||||
@ -192,7 +194,8 @@ void KillMgr::BoradcastRollMsg(Human* dead_hum,
|
|||||||
0,
|
0,
|
||||||
a8::XParams()
|
a8::XParams()
|
||||||
.SetSender(dead_hum)
|
.SetSender(dead_hum)
|
||||||
.SetParam1(pb_msg_copy)
|
.SetParam1(info_copy)
|
||||||
|
.SetParam2(pb_msg_copy)
|
||||||
.SetParam3(killer_team_id),
|
.SetParam3(killer_team_id),
|
||||||
[] (const a8::XParams& param)
|
[] (const a8::XParams& param)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user