mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-27 00:41:08 +02:00
Refactoring of hoverText from objects:
- removed hoverText field - split getHoverText() method into 3: - - getObjectName() for generic name - - getHoverText(Player) for player-specific text - - getHoverText(Hero) for hero-specific strings
This commit is contained in:
@ -1053,7 +1053,6 @@ void CGameState::randomizeMapObjects()
|
||||
if(!obj) continue;
|
||||
|
||||
randomizeObject(obj);
|
||||
obj->hoverName = VLC->objtypeh->getObjectName(obj->ID);
|
||||
|
||||
//handle Favouring Winds - mark tiles under it
|
||||
if(obj->ID == Obj::FAVORABLE_WINDS)
|
||||
@ -2980,7 +2979,7 @@ void InfoAboutArmy::initFromArmy(const CArmedInstance *Army, bool detailed)
|
||||
{
|
||||
army = ArmyDescriptor(Army, detailed);
|
||||
owner = Army->tempOwner;
|
||||
name = Army->getHoverText();
|
||||
name = Army->getObjectName();
|
||||
}
|
||||
|
||||
void InfoAboutHero::assign(const InfoAboutHero & iah)
|
||||
|
Reference in New Issue
Block a user