mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Lazy updates of hero paths.
This commit is contained in:
@@ -647,6 +647,12 @@ void CClient::commenceTacticPhaseForInt(CBattleGameInterface *battleInt)
|
||||
} HANDLE_EXCEPTION
|
||||
}
|
||||
|
||||
void CClient::invalidatePaths(const CGHeroInstance *h /*= NULL*/)
|
||||
{
|
||||
if(!h || pathInfo->hero == h)
|
||||
pathInfo->isValid = false;
|
||||
}
|
||||
|
||||
template void CClient::serialize( CISer<CLoadFile> &h, const int version );
|
||||
template void CClient::serialize( COSer<CSaveFile> &h, const int version );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user