Merge branch 'master' into team
This commit is contained in:
commit
037e85247c
@ -2226,8 +2226,9 @@ void Human::DecItem(int item_id, int item_num)
|
||||
room->frame_event.AddItemChg(GetWeakPtrRef(), item_id, std::max(0, itr->second));
|
||||
if (itr->second <= 0) {
|
||||
if (battling_items_.find(item_id) == battling_items_.end()) {
|
||||
items_.erase(itr);
|
||||
//items_.erase(itr); //为啥?????
|
||||
}
|
||||
items_.erase(itr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -365,6 +365,7 @@ void Player::UpdateUseItemId()
|
||||
ProcUseItem(use_item_id);
|
||||
use_item_id = 0;
|
||||
has_use_item_id = false;
|
||||
need_sync_active_player = true;
|
||||
}
|
||||
|
||||
void Player::UpdateSpectate()
|
||||
|
Loading…
x
Reference in New Issue
Block a user