This commit is contained in:
aozhiwei 2021-05-25 11:45:01 +08:00
parent 836b05db56
commit 442845053d

View File

@ -51,6 +51,12 @@ void FrameEvent::AddShot(Creature* sender)
} else {
sender->GetCurrWeapon()->ToPB(p.mutable_weapon());
}
if (sender->IsHuman()) {
Human* hum = (Human*)sender;
if (hum->GetCar()) {
p.set_hole(hum->GetSeat());
}
}
}
{
int shot_idx = shots_.size() - 1;