781 {
783 if (nDeadPlayers == 0)
784 return;
785 int current_time =
g_Game.GetTime();
786 array<int> invalid_corpses = new array<int>;
787 CorpseData corpse_data;
788
789 for (int i = 0; i < nDeadPlayers; ++i)
790 {
792 if (!corpse_data || (corpse_data && (!corpse_data.
m_Player || !corpse_data.
m_bUpdate)))
793 {
794 invalid_corpses.Insert(i);
795 }
797 {
800 }
801 }
802
803
804 int nInvalidCorpses = invalid_corpses.Count();
805 if (nInvalidCorpses > 0)
806 {
807 for (i = nInvalidCorpses - 1; i >= 0; --i)
808 {
810 }
811 }
812 }
void UpdateCorpseState(bool force_check=false)
ref array< ref CorpseData > m_DeadPlayersArray