修复救人bug
This commit is contained in:
parent
6c0c60f289
commit
ef26f6e56a
@ -487,6 +487,14 @@ void Human::BeKill(int killer_id, const std::string& killer_name)
|
||||
send_gameover = true;
|
||||
room->OnHumanDie(this);
|
||||
SyncAroundPlayers();
|
||||
if (team_members) {
|
||||
for (auto& hum : *team_members) {
|
||||
if (hum != this && hum->action_type == AT_Relive &&
|
||||
hum->action_target_id == entity_uniid) {
|
||||
hum->CancelAction();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -267,7 +267,7 @@ void Player::UpdateAction()
|
||||
room->xtimer.DeleteTimer(hum->downed_timer);
|
||||
hum->downed_timer = nullptr;
|
||||
}
|
||||
SyncAroundPlayers();
|
||||
hum->SyncAroundPlayers();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user