1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-01 00:45:26 +02:00

CPathfinder: update comment for isSourceGuarded condition

This commit is contained in:
ArseniyShestakov
2015-10-27 00:22:40 +03:00
parent 01257efc02
commit 9e8427a078

View File

@ -3358,7 +3358,8 @@ int3 CPathfinder::getSourceGuardPosition()
bool CPathfinder::isSourceGuarded()
{
//TODO: find out why exactly source can't be guarded if hero on it. Why this quirk was nessesaary in first place? Map where hero start on guarded tile?
//map can start with hero on guarded tile or teleport there using dimension door
//so threat tile hero standing on like it's not guarded because it's should be possible to move out of here
if(getSourceGuardPosition() != int3(-1, -1, -1)
&& cp->coord != hero->getPosition(false))
{