移除Human里的timer_attacher
This commit is contained in:
parent
0c7c8eb5df
commit
a428f6ebc5
@ -2892,7 +2892,7 @@ void Human::AddItem(int item_id, int item_num)
|
||||
items_[item_id] = item_num;
|
||||
}
|
||||
|
||||
if (room->frame_no > join_frameno) {
|
||||
if (room && room->frame_no > join_frameno) {
|
||||
room->frame_event.AddItemChg(this, item_id, items_[item_id]);
|
||||
} else {
|
||||
if (item_num <= 0) {
|
||||
|
@ -46,7 +46,6 @@ class Human : public MoveableEntity
|
||||
MetaData::Dress* skin_jlf_meta = nullptr;
|
||||
MetaData::Equip* skin_tank_meta = nullptr;
|
||||
HumanAbility ability;
|
||||
a8::XTimerAttacher xtimer_attacher;
|
||||
|
||||
a8::Vec2 move_dir;
|
||||
a8::Vec2 attack_dir;
|
||||
|
@ -491,7 +491,7 @@ namespace MetaData
|
||||
{
|
||||
std::vector<std::string> strings;
|
||||
a8::Split(i->drop(), strings, ':');
|
||||
if (strings.size() < 2) {
|
||||
if (strings.size() >= 2) {
|
||||
drop.push_back(std::make_tuple(
|
||||
a8::XValue(strings[0]),
|
||||
a8::XValue(strings[1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user