1
0
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:
Michał Kalinowski
2019-03-20 20:58:15 +01:00
committed by Alexander Shishkin
parent ec536e613c
commit ac6b477aa2
21 changed files with 45 additions and 148 deletions

View File

@ -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