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

* one more fix for r1145

This commit is contained in:
mateuszb
2009-08-24 10:35:11 +00:00
parent 226a8a8102
commit 543e3c6431
3 changed files with 5 additions and 7 deletions

View File

@ -1286,7 +1286,7 @@ int CGTownInstance::getSightRadious() const //returns sight distance
if (subID == 2) //tower
{
if ((builtBuildings.find(17)) != builtBuildings.end()) //skyship
return cb->getMapSize().first + cb->getMapSize().second;
return cb->getMapSize().x + cb->getMapSize().y;
else if ((builtBuildings.find(21)) != builtBuildings.end()) //lookout tower
return 20;
}