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

◆ OnBleedingBitsUpdate()

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

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

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

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

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