bool CvUnit::jumpToNearestCity()
{
CvCity* pNearestCity;
pNearestCity = GC.getMapINLINE().findCity(getX_INLINE(), getY_INLINE(), getOwnerINLINE());
if (pNearestCity != NULL)
{
setXY(pNearestCity->getX_INLINE(), pNearestCity->getY_INLINE());
return true;
}
else
{
kill(false);
return false;
}
}