mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Use WEAPON_CLASS_ITEM1 instead of raw 256 constant value
This commit is contained in:
parent
c399f45841
commit
a3ed25cb2e
1 changed files with 2 additions and 2 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue