Use WEAPON_CLASS_ITEM1 instead of raw 256 constant value

This commit is contained in:
smallmodel 2023-11-15 19:36:29 +01:00
parent c399f45841
commit a3ed25cb2e
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -7268,10 +7268,10 @@ void Player::UpdateStats(void)
weapon->SetItemSlot(0);
} else {
client->ps.activeItems[iItem + 2] = weapon->getIndex();
weapon->SetItemSlot(256 << iItem);
weapon->SetItemSlot(WEAPON_CLASS_ITEM1 << iItem);
if (activeweap && weapon == activeweap) {
client->ps.stats[STAT_EQUIPPED_WEAPON] = 256 << iItem;
client->ps.stats[STAT_EQUIPPED_WEAPON] = WEAPON_CLASS_ITEM1 << iItem;
}
iItem++;