Skip to content

Commit

Permalink
Update pack.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ikonomov committed Feb 5, 2024
1 parent 343f2ea commit 820be93
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Source/pack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,19 +520,6 @@ bool UnPackNetItem(const Player &player, const ItemNetPack &packedItem, Item &it
return true;
}

uint16_t creationFlags = SDL_SwapLE16(packedItem.item.wCI);
uint32_t dwBuff = SDL_SwapLE16(packedItem.item.dwBuff);
if (idx != IDI_GOLD)
ValidateField(creationFlags, IsCreationFlagComboValid(creationFlags));
if ((creationFlags & CF_TOWN) != 0)
ValidateField(creationFlags, IsTownItemValid(creationFlags));
else if ((creationFlags & CF_USEFUL) == CF_UPER15)
ValidateFields(creationFlags, dwBuff, IsUniqueMonsterItemValid(creationFlags, dwBuff));
else if ((dwBuff & CF_HELLFIRE) != 0 && AllItemsList[idx].iMiscId == IMISC_BOOK)
return RecreateHellfireSpellBook(player, packedItem, item);
else
ValidateFields(creationFlags, dwBuff, IsDungeonItemValid(creationFlags, dwBuff));

RecreateItem(player, packedItem.item, item);
return true;
}
Expand Down

0 comments on commit 820be93

Please sign in to comment.