mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-24 00:36:29 +02:00
All text for factions/towns/building are passed through translator
This commit is contained in:
@@ -565,7 +565,7 @@ void CMap::checkForObjectives()
|
||||
{
|
||||
const CGTownInstance *town = dynamic_cast<const CGTownInstance*>(cond.object);
|
||||
if (town)
|
||||
boost::algorithm::replace_first(event.onFulfill, "%s", town->name);
|
||||
boost::algorithm::replace_first(event.onFulfill, "%s", town->getNameTranslated());
|
||||
const CGHeroInstance *hero = dynamic_cast<const CGHeroInstance*>(cond.object);
|
||||
if (hero)
|
||||
boost::algorithm::replace_first(event.onFulfill, "%s", hero->getNameTranslated());
|
||||
|
||||
Reference in New Issue
Block a user