This commit is contained in:
aozhiwei 2024-04-22 20:56:12 +08:00
parent abf374d3cf
commit 8c56a6ae63
2 changed files with 3 additions and 7 deletions

View File

@ -302,13 +302,13 @@ private:
return source_name; return source_name;
}); });
owner_.Get()->GetAbility()->SetSource(attr_handle, cb); owner_.Get()->GetAbility()->SetSource(attr_handle, cb);
}
#endif #endif
} }
} }
} }
} }
} }
}
{ {
auto chip_page = hero_dto->At("chip_page"); auto chip_page = hero_dto->At("chip_page");
if (chip_page && chip_page->IsObject()) { if (chip_page && chip_page->IsObject()) {
@ -334,7 +334,6 @@ private:
return source_name; return source_name;
}); });
owner_.Get()->GetAbility()->SetSource(attr_handle, cb); owner_.Get()->GetAbility()->SetSource(attr_handle, cb);
}
#endif #endif
} }
} }
@ -342,6 +341,7 @@ private:
} }
} }
} }
}
private: private:
CreatureWeakPtr owner_; CreatureWeakPtr owner_;

View File

@ -2200,11 +2200,7 @@ void Human::PushJoinRoomMsg()
notifymsg.set_error_code(0); notifymsg.set_error_code(0);
notifymsg.set_server_info(JsonDataMgr::Instance()->server_info); notifymsg.set_server_info(JsonDataMgr::Instance()->server_info);
room->FillSMJoinedNotify(this, notifymsg); room->FillSMJoinedNotify(this, notifymsg);
#ifdef MYDEBUG notifymsg.set_pre_client_shot(mt::Param::s().pre_client_shot);
//notifymsg.set_pre_client_shot(mt::Param::s().pre_client_shot);
#else
//notifymsg.set_pre_client_shot(mt::Param::s().pre_client_shot);
#endif
GGListener::Instance()->SendToClient(socket_handle, 0, notifymsg); GGListener::Instance()->SendToClient(socket_handle, 0, notifymsg);
} }
{ {