794 {
796 if (nDeadPlayers == 0)
797 return;
798 int current_time =
g_Game.GetTime();
799 array<int> invalid_corpses = new array<int>;
800 CorpseData corpse_data;
801
802 for (int i = 0; i < nDeadPlayers; ++i)
803 {
805 if (!corpse_data || (corpse_data && (!corpse_data.
m_Player || !corpse_data.
m_bUpdate)))
806 {
807 invalid_corpses.Insert(i);
808 }
810 {
813 }
814 }
815
816
817 int nInvalidCorpses = invalid_corpses.Count();
818 if (nInvalidCorpses > 0)
819 {
820 for (i = nInvalidCorpses - 1; i >= 0; --i)
821 {
823 }
824 }
825 }
void UpdateCorpseState(bool force_check=false)
ref array< ref CorpseData > m_DeadPlayersArray