mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[8571] Avoid use ^ bitmask operation for bool values compare in general.
Also drop HandleSet32Bit logn unused and wrong coded chat command code.
This commit is contained in:
parent
b2e32f4ff9
commit
47bf1dbce6
10 changed files with 10 additions and 37 deletions
|
|
@ -17734,7 +17734,7 @@ void Player::CorrectMetaGemEnchants(uint8 exceptslot, bool apply)
|
|||
//was enchant active with/without item?
|
||||
bool wasactive = EnchantmentFitsRequirements(condition, apply ? exceptslot : -1);
|
||||
//should it now be?
|
||||
if(wasactive ^ EnchantmentFitsRequirements(condition, apply ? -1 : exceptslot))
|
||||
if(wasactive != EnchantmentFitsRequirements(condition, apply ? -1 : exceptslot))
|
||||
{
|
||||
// ignore item gem conditions
|
||||
//if state changed, (dis)apply enchant
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue