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

* fixed bug crashing server when hero was moving near bottom or right edge of the map

* a few improvements in CMinimap.
This commit is contained in:
mateuszb
2009-03-13 14:16:53 +00:00
parent 5bbc50fc12
commit 227d48c12b
5 changed files with 53 additions and 16 deletions

View File

@ -1243,11 +1243,7 @@ void CPlayerInterface::heroMoved(const HeroMoveDetails & details)
{
boost::unique_lock<boost::recursive_mutex> un(*pim);
int3 buff = details.ho->pos;
buff.x-=11;
buff.y-=9;
buff = repairScreenPos(buff);
LOCPLINT->adventureInt->position = buff; //actualizing screen pos
adventureInt->centerOn(details.ho->pos); //actualizing screen pos
if(adventureInt == curint)
adventureInt->minimap.draw();