mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Fixed #534, minor correction.
This commit is contained in:
parent
cedf6d812c
commit
0e9eb1ab2d
@ -396,17 +396,14 @@ int3 CPlayerInterface::repairScreenPos(int3 pos)
|
||||
}
|
||||
void CPlayerInterface::heroPrimarySkillChanged(const CGHeroInstance * hero, int which, si64 val)
|
||||
{
|
||||
boost::unique_lock<boost::recursive_mutex> un(*pim);
|
||||
if(which == 4)
|
||||
{
|
||||
if(CAltarWindow *ctw = dynamic_cast<CAltarWindow *>(GH.topInt()))
|
||||
{
|
||||
ctw->setExpToLevel();
|
||||
}
|
||||
}
|
||||
if(which >= PRIMARY_SKILLS) //no need to redraw infowin if this is experience (exp is treated as prim skill with id==4)
|
||||
return;
|
||||
boost::unique_lock<boost::recursive_mutex> un(*pim);
|
||||
updateInfo(hero);
|
||||
else if(which < PRIMARY_SKILLS) //no need to redraw infowin if this is experience (exp is treated as prim skill with id==4)
|
||||
updateInfo(hero);
|
||||
}
|
||||
void CPlayerInterface::heroManaPointsChanged(const CGHeroInstance * hero)
|
||||
{
|
||||
|
@ -6158,6 +6158,7 @@ void CCartographer::buyMap (const CGHeroInstance *h, ui32 accept) const
|
||||
{
|
||||
cb->giveResource (h->tempOwner, 6, -1000);
|
||||
FoWChange fw;
|
||||
fw.mode = 1;
|
||||
fw.player = h->tempOwner;
|
||||
|
||||
//subIDs of different types of cartographers:
|
||||
|
Loading…
Reference in New Issue
Block a user