3174 {
3176 {
3177 bool correct = true;
3178
3179 int count;
3183
3184
3185 if(!ctx.
Read(count))
3186 return false;
3187
3188 for (int i = 0; i < count; i++)
3189 {
3191 {
3192 return false;
3193 }
3194
3195 clientIl.
GetItem().GetInventory().GetCurrentInventoryLocation(realIl);
3196
3197 if(clientIl != realIl)
3198 {
3199 itemsToRepair.Insert(clientIl.
GetItem());
3200 correct = false;
3201 }
3202 }
3203
3204 if (itemsToRepair.Count())
3205 {
3206 #ifdef DIAG_DEVELOPER
3207 if (PluginInventoryDebug.Cast(
GetPlugin(PluginInventoryDebug)).IsDesyncRepairEnable())
3208 {
3209 #endif
3211 #ifdef DIAG_DEVELOPER
3212 }
3213 #endif
3214 }
3215
3216 return correct;
3217 }
3218 return false;
3219 }
DayZPlayer GetDayZPlayerOwner()
PluginBase GetPlugin(typename plugin_type)
bool ReadFromContext(ParamsReadContext ctx)
proto native EntityAI GetItem()
returns item of current inventory location
proto bool Read(void value_in)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.