mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Simplify statements
-Simplify return statements across the code
This commit is contained in:
committed by
Alexander Shishkin
parent
ec536e613c
commit
ac6b477aa2
@ -721,10 +721,7 @@ bool CUnitState::canMove(int turn) const
|
||||
|
||||
bool CUnitState::defended(int turn) const
|
||||
{
|
||||
if(!turn)
|
||||
return defending;
|
||||
else
|
||||
return false;
|
||||
return !turn && defending;
|
||||
}
|
||||
|
||||
bool CUnitState::moved(int turn) const
|
||||
|
Reference in New Issue
Block a user