mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Simplify statements
-Simplify return statements across the code
This commit is contained in:
committed by
Alexander Shishkin
parent
ec536e613c
commit
ac6b477aa2
@@ -422,8 +422,5 @@ bool CBattleInfoEssentials::battleMatchOwner(const PlayerColor & attacker, const
|
||||
|
||||
PlayerColor initialOwner = getBattle()->getSidePlayer(defender->unitSide());
|
||||
|
||||
if(boost::logic::indeterminate(positivness))
|
||||
return true;
|
||||
else
|
||||
return (attacker == initialOwner) == (bool)positivness;
|
||||
return boost::logic::indeterminate(positivness) || (attacker == initialOwner) == (bool)positivness;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user