修復下机甲卡墙问题

This commit is contained in:
aozhiwei 2021-11-19 14:28:45 +08:00
parent 50d6fa1204
commit cacbbab1d0
2 changed files with 5 additions and 1 deletions

View File

@ -119,6 +119,10 @@ void Car::GetDown(Human* passenger)
passenger->CancelAction();
passenger->RemoveBuffByEffectId(kBET_Driver);
passenger->RemoveBuffByEffectId(kBET_Passenger);
#if 1
passenger->SetPos(passenger->GetPos() -
a8::Vec2(hero_meta_->i->move_offset_x(), hero_meta_->i->move_offset_y()));
#endif
room->frame_event.AddCarChg(passenger->GetWeakPtrRef());
if (passengers_.empty()) {
team_id = 0;

View File

@ -159,7 +159,7 @@ void MatchMgr::RemoveSocket(int socket_handle)
void MatchMgr::Output()
{
#ifdef DEBUG
#ifdef DEBUG1
a8::XPrintf(">>>>>>>>>>>>>>>>>>>>>>>>>>\n", {});
for (auto& pair : team_hash_) {
a8::XPrintf("team:%s \n", {pair.first});