DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnBleedingBitsUpdate()

void BleedingSourcesManagerBase::OnBleedingBitsUpdate ( int old_mask,
int new_mask )
inlineprotected

См. определение в файле BleedingSourcesManagerRemote.c строка 91

92 {
93 for (int i = 0; i < 32; ++i)
94 {
95 int compare_bit = 1 << i;
96 int new_compare_result_bit = compare_bit & new_mask;
97 int old_compare_result_bit = compare_bit & old_mask;
98
99 if (new_compare_result_bit)
100 {
101 if (!(new_compare_result_bit & old_mask))
102 {
103 //a different active bit in the new mask
104 AddBleedingSource(new_compare_result_bit);
105 }
106 }
107 else
108 {
109 if (new_compare_result_bit != old_compare_result_bit)
110 {
111 RemoveBleedingSource(old_compare_result_bit);
112 }
113 }
114 }
115 }
void AddBleedingSource(int bit)
Определения BleedingSourcesManagerBase.c:260
bool RemoveBleedingSource(int bit)
Определения BleedingSourcesManagerBase.c:308

Перекрестные ссылки AddBleedingSource() и RemoveBleedingSource().

Используется в OnVariablesSynchronized().