mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Simplify statements
-Simplify return statements across the code
This commit is contained in:
committed by
Alexander Shishkin
parent
ec536e613c
commit
ac6b477aa2
@@ -594,10 +594,7 @@ CSpell::TargetInfo::TargetInfo(const CSpell * spell, const int level, spells::Mo
|
||||
bool DLL_LINKAGE isInScreenRange(const int3 & center, const int3 & pos)
|
||||
{
|
||||
int3 diff = pos - center;
|
||||
if(diff.x >= -9 && diff.x <= 9 && diff.y >= -8 && diff.y <= 8)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
return diff.x >= -9 && diff.x <= 9 && diff.y >= -8 && diff.y <= 8;
|
||||
}
|
||||
|
||||
///CSpellHandler
|
||||
|
||||
Reference in New Issue
Block a user