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

Fixes for exchange window in non 800x600 res

Minor improvements and fixes.
This commit is contained in:
Michał W. Urbańczyk
2009-07-27 17:55:56 +00:00
parent aad61c8ac8
commit 25663d2605
7 changed files with 28 additions and 14 deletions

View File

@ -447,7 +447,7 @@ int CGHeroInstance::maxMovePoints(bool onLand) const
else
{
//navigation:
switch(getSecSkillLevel(2))
switch(getSecSkillLevel(5))
{
case 1:
modifier = 0.5;
@ -2495,7 +2495,8 @@ const std::string & CGWitchHut::getHoverText() const
{
hoverName += "\n" + VLC->generaltexth->allTexts[356]; // + (learn %s)
boost::algorithm::replace_first(hoverName,"%s",VLC->generaltexth->skillName[ability]);
if(cb->getSelectedHero(cb->getCurrentPlayer())->getSecSkillLevel(ability)) //hero knows that ability
const CGHeroInstance *h = cb->getSelectedHero(cb->getCurrentPlayer());
if(h && h->getSecSkillLevel(ability)) //hero knows that ability
hoverName += "\n\n" + VLC->generaltexth->allTexts[357]; // (Already learned)
}
return hoverName;